use of com.sequenceiq.freeipa.kerberos.KerberosConfig in project cloudbreak by hortonworks.
the class CreateKerberosConfigRequestToKerberosConfigConverterTest method testFreeIpa.
@Test
public void testFreeIpa() {
CreateKerberosConfigRequest request = new CreateKerberosConfigRequest();
request.setFreeIpa(createFreeIpaDescriptor(true));
request.setName(NAME);
KerberosConfig kerberosConfig = underTest.convert(request);
checkFreeIpaParams(kerberosConfig, true);
}
use of com.sequenceiq.freeipa.kerberos.KerberosConfig in project cloudbreak by hortonworks.
the class CreateKerberosConfigRequestToKerberosConfigConverterTest method testAdWithoutDomain.
@Test
public void testAdWithoutDomain() {
CreateKerberosConfigRequest request = new CreateKerberosConfigRequest();
ActiveDirectoryKerberosDescriptor adDescriptor = createActiveDirectoryKerberosDescriptor(false);
request.setActiveDirectory(adDescriptor);
request.setName(NAME);
KerberosConfig kerberosConfig = underTest.convert(request);
checkActiveDirectoryParams(kerberosConfig, false);
}
use of com.sequenceiq.freeipa.kerberos.KerberosConfig in project cloudbreak by hortonworks.
the class CreateKerberosConfigRequestToKerberosConfigConverterTest method testAd.
@Test
public void testAd() {
CreateKerberosConfigRequest request = new CreateKerberosConfigRequest();
ActiveDirectoryKerberosDescriptor adDescriptor = createActiveDirectoryKerberosDescriptor(true);
request.setActiveDirectory(adDescriptor);
request.setName(NAME);
KerberosConfig kerberosConfig = underTest.convert(request);
checkActiveDirectoryParams(kerberosConfig, true);
}
use of com.sequenceiq.freeipa.kerberos.KerberosConfig in project cloudbreak by hortonworks.
the class UserKeytabServiceTest method setupKerberosConfig.
private void setupKerberosConfig() {
KerberosConfig kerberosConfig = mock(KerberosConfig.class);
when(kerberosConfig.getRealm()).thenReturn("realm");
when(kerberosConfigRepository.findByAccountIdAndEnvironmentCrnAndClusterNameIsNullAndArchivedIsFalse(any(), any())).thenReturn(Optional.of(kerberosConfig));
}
use of com.sequenceiq.freeipa.kerberos.KerberosConfig in project cloudbreak by hortonworks.
the class CreateKerberosConfigRequestToKerberosConfigConverterTest method testFreeIpaWithoutDomain.
@Test
public void testFreeIpaWithoutDomain() {
CreateKerberosConfigRequest request = new CreateKerberosConfigRequest();
request.setFreeIpa(createFreeIpaDescriptor(false));
request.setName(NAME);
KerberosConfig kerberosConfig = underTest.convert(request);
checkFreeIpaParams(kerberosConfig, false);
}
Aggregations