Search in sources :

Example 16 with KerberosRequest

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));
}
Also used : KerberosRequest(com.sequenceiq.cloudbreak.api.model.KerberosRequest) Test(org.junit.Test)

Example 17 with KerberosRequest

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));
}
Also used : KerberosRequest(com.sequenceiq.cloudbreak.api.model.KerberosRequest) Test(org.junit.Test)

Aggregations

KerberosRequest (com.sequenceiq.cloudbreak.api.model.KerberosRequest)17 Test (org.junit.Test)11 AbstractConverterTest (com.sequenceiq.cloudbreak.converter.AbstractConverterTest)4 KerberosConfig (com.sequenceiq.cloudbreak.domain.KerberosConfig)4 IntegrationTestContext (com.sequenceiq.it.IntegrationTestContext)4 Parameters (org.testng.annotations.Parameters)4 Test (org.testng.annotations.Test)4 ClusterV1Endpoint (com.sequenceiq.cloudbreak.api.endpoint.v1.ClusterV1Endpoint)3 ClusterRequest (com.sequenceiq.cloudbreak.api.model.ClusterRequest)3 HostGroupRequest (com.sequenceiq.cloudbreak.api.model.HostGroupRequest)3 GatewayJson (com.sequenceiq.cloudbreak.api.model.GatewayJson)2 AmbariV2Request (com.sequenceiq.cloudbreak.api.model.v2.AmbariV2Request)2 StackV2Request (com.sequenceiq.cloudbreak.api.model.v2.StackV2Request)2 HostGroup (com.sequenceiq.it.cloudbreak.HostGroup)2 ClusterV2Request (com.sequenceiq.cloudbreak.api.model.v2.ClusterV2Request)1 CloudVmMetaDataStatus (com.sequenceiq.cloudbreak.cloud.model.CloudVmMetaDataStatus)1 AbstractCloudbreakIntegrationTest (com.sequenceiq.it.cloudbreak.AbstractCloudbreakIntegrationTest)1 AbstractMockIntegrationTest (com.sequenceiq.it.cloudbreak.AbstractMockIntegrationTest)1 AbstractStackCreationV2Test (com.sequenceiq.it.cloudbreak.v2.AbstractStackCreationV2Test)1 StackCreationMock (com.sequenceiq.it.cloudbreak.v2.mock.StackCreationMock)1