Package org.apache.hadoop.hbase.http
Class TestLdapHttpServer
java.lang.Object
org.apache.hadoop.hbase.http.HttpServerFunctionalTest
org.apache.hadoop.hbase.http.LdapServerTestBase
org.apache.hadoop.hbase.http.TestLdapHttpServer
@Tag("org.apache.hadoop.hbase.testclassification.MiscTests") @Tag("org.apache.hadoop.hbase.testclassification.SmallTests")
@CreateLdapServer(transports=@CreateTransport(protocol="LDAP",address="localhost"))
@ApplyLdifs({"dn: uid=bjones,dc=example,dc=com","cn: Bob Jones","sn: Jones","objectClass: inetOrgPerson","uid: bjones","userPassword: p@ssw0rd"})
public class TestLdapHttpServer
extends LdapServerTestBase
Test class for LDAP authentication on the HttpServer.
- 
Field Summary
FieldsFields inherited from class org.apache.hadoop.hbase.http.LdapServerTestBase
baseUrl, classDirectoryService, classLdapServer, directoryService, ldapConnectionTemplate, ldapServer, methodDirectoryService, methodLdapServer, revision, serverFields inherited from class org.apache.hadoop.hbase.http.HttpServerFunctionalTest
TEST_BUILD_WEBAPPS - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidMethods inherited from class org.apache.hadoop.hbase.http.LdapServerTestBase
getLdapServer, openConnection, setLdapConfigurations, setupServer, stopServerMethods inherited from class org.apache.hadoop.hbase.http.HttpServerFunctionalTest
access, createAndStartTestServer, createServer, createServer, createServer, createServer, createServer, createTestServer, createTestServer, createTestServer, createTestServer, createTestServerWithSecurity, createTestServerWithSecurityAndAcl, deleteRecursively, getFreePort, getServerURL, prepareTestWebapp, readOutput, stop 
- 
Field Details
- 
BJONES_CREDENTIALS
- See Also:
 
 - 
WRONG_CREDENTIALS
- See Also:
 
 
 - 
 - 
Constructor Details
- 
TestLdapHttpServer
public TestLdapHttpServer() 
 - 
 - 
Method Details
- 
testUnauthorizedClientsDisallowed
- Throws:
 IOException
 - 
testAllowedClient
- Throws:
 IOException
 - 
testWrongAuthClientsDisallowed
- Throws:
 IOException
 
 -