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
@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
FieldsModifier and TypeFieldDescriptionprivate static final String
static final HBaseClassTestRule
private static final String
Fields inherited from class org.apache.hadoop.hbase.http.LdapServerTestBase
baseUrl, ldapRule, server
Fields inherited from class org.apache.hadoop.hbase.http.HttpServerFunctionalTest
TEST_BUILD_WEBAPPS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
Methods inherited from class org.apache.hadoop.hbase.http.LdapServerTestBase
openConnection, setLdapConfigurations, setupServer, stopServer
Methods 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
-
CLASS_RULE
-
BJONES_CREDENTIALS
- See Also:
-
WRONG_CREDENTIALS
- See Also:
-
-
Constructor Details
-
TestLdapHttpServer
public TestLdapHttpServer()
-
-
Method Details
-
testUnauthorizedClientsDisallowed
- Throws:
IOException
-
testAllowedClient
- Throws:
IOException
-
testWrongAuthClientsDisallowed
- Throws:
IOException
-