Package org.apache.hadoop.hbase.http
Class TestLdapHttpServer
java.lang.Object
org.apache.hadoop.hbase.http.HttpServerFunctionalTest
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 HttpServerFunctionalTest
Test class for LDAP authentication on the HttpServer.
-
Field Summary
Modifier and TypeFieldDescriptionprivate static URL
static final HBaseClassTestRule
private static final org.slf4j.Logger
private static org.apache.hadoop.hbase.http.HttpServer
static org.apache.directory.server.core.integ.CreateLdapServerRule
Fields inherited from class org.apache.hadoop.hbase.http.HttpServerFunctionalTest
TEST_BUILD_WEBAPPS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static org.apache.hadoop.conf.Configuration
buildLdapConfiguration
(org.apache.hadoop.conf.Configuration conf) static void
static void
void
void
void
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
-
serverRule
-
LOG
-
server
-
baseUrl
-
-
Constructor Details
-
TestLdapHttpServer
public TestLdapHttpServer()
-
-
Method Details
-
setupServer
- Throws:
Exception
-
stopServer
- Throws:
Exception
-
buildLdapConfiguration
private static org.apache.hadoop.conf.Configuration buildLdapConfiguration(org.apache.hadoop.conf.Configuration conf) -
testUnauthorizedClientsDisallowed
- Throws:
IOException
-
testAllowedClient
- Throws:
IOException
-
testWrongAuthClientsDisallowed
- Throws:
IOException
-