use of com.sequenceiq.cloudbreak.api.model.KerberosRequest in project cloudbreak by hortonworks.
the class KerberosTypeTest method testCustom.
@Test
public void testCustom() {
KerberosRequest request = new KerberosRequest();
request.setPrincipal("prnc");
request.setPassword("pwd");
request.setDescriptor("{}");
request.setKrb5Conf("{}");
Assert.assertEquals(KerberosType.CUSTOM, KerberosType.valueOf(request));
}
use of com.sequenceiq.cloudbreak.api.model.KerberosRequest in project cloudbreak by hortonworks.
the class KerberosTypeTest method testCloudbreakManagedPlusField.
@Test
public void testCloudbreakManagedPlusField() {
KerberosRequest request = new KerberosRequest();
request.setMasterKey("mk");
request.setAdmin("adm");
request.setPassword("pwd");
request.setPrincipal("prnc");
Assert.assertNull(KerberosType.valueOf(request));
}
Aggregations