Search in sources :

Example 16 with LdapConfig

use of com.sequenceiq.cloudbreak.domain.LdapConfig in project cloudbreak by hortonworks.

the class LdapConfigValidatorTest method testInvalidLdapConnection.

@Test
public void testInvalidLdapConnection() {
    LdapConfig ldapConfig = TestUtil.ldapConfig();
    ldapConfig.setProtocol("ldap://");
    thrown.expect(BadRequestException.class);
    thrown.expectMessage("Invalid name: /localhost:389");
    underTest.validateLdapConnection(ldapConfig);
}
Also used : LdapConfig(com.sequenceiq.cloudbreak.domain.LdapConfig) Test(org.junit.Test)

Aggregations

LdapConfig (com.sequenceiq.cloudbreak.domain.LdapConfig)16 IdentityUser (com.sequenceiq.cloudbreak.common.model.user.IdentityUser)6 NotFoundException (com.sequenceiq.cloudbreak.controller.NotFoundException)3 BlueprintProcessingException (com.sequenceiq.cloudbreak.blueprint.BlueprintProcessingException)2 BlueprintView (com.sequenceiq.cloudbreak.blueprint.template.views.BlueprintView)2 FileSystemConfigurationView (com.sequenceiq.cloudbreak.blueprint.template.views.FileSystemConfigurationView)2 BlueprintStackInfo (com.sequenceiq.cloudbreak.blueprint.templates.BlueprintStackInfo)2 CloudbreakServiceException (com.sequenceiq.cloudbreak.service.CloudbreakServiceException)2 IOException (java.io.IOException)2 Test (org.junit.Test)2 LdapTestResult (com.sequenceiq.cloudbreak.api.model.ldap.LdapTestResult)1 LdapValidationRequest (com.sequenceiq.cloudbreak.api.model.ldap.LdapValidationRequest)1 HdfConfigs (com.sequenceiq.cloudbreak.blueprint.nifi.HdfConfigs)1 HostgroupView (com.sequenceiq.cloudbreak.blueprint.template.views.HostgroupView)1 GeneralClusterConfigs (com.sequenceiq.cloudbreak.blueprint.templates.GeneralClusterConfigs)1 StackRepoDetails (com.sequenceiq.cloudbreak.cloud.model.component.StackRepoDetails)1 Blueprint (com.sequenceiq.cloudbreak.domain.Blueprint)1 Cluster (com.sequenceiq.cloudbreak.domain.Cluster)1 FileSystem (com.sequenceiq.cloudbreak.domain.FileSystem)1 FlexSubscription (com.sequenceiq.cloudbreak.domain.FlexSubscription)1