Package org.apache.hadoop.hbase.http
Class TestLdapAdminACL
java.lang.Object
org.apache.hadoop.hbase.http.HttpServerFunctionalTest
org.apache.hadoop.hbase.http.LdapServerTestBase
org.apache.hadoop.hbase.http.TestLdapAdminACL
@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","dn: uid=jdoe,dc=example,dc=com","cn: John Doe","sn: Doe","objectClass: inetOrgPerson","uid: jdoe","userPassword: secure123"})
public class TestLdapAdminACL
extends LdapServerTestBase
Test class for admin ACLs with LDAP authentication on the HttpServer.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final String
static final HBaseClassTestRule
private static final org.slf4j.Logger
private static final String
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 TypeMethodDescriptionprivate static void
setLdapConfigurationWithACLs
(org.apache.hadoop.conf.Configuration conf) static void
void
void
void
void
void
void
Methods inherited from class org.apache.hadoop.hbase.http.LdapServerTestBase
openConnection, setLdapConfigurations, 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
-
LOG
-
ADMIN_CREDENTIALS
- See Also:
-
NON_ADMIN_CREDENTIALS
- See Also:
-
WRONG_CREDENTIALS
- See Also:
-
-
Constructor Details
-
TestLdapAdminACL
public TestLdapAdminACL()
-
-
Method Details
-
setupServer
- Throws:
Exception
-
setLdapConfigurationWithACLs
-
testAdminAllowedUnprivilegedServletAccess
- Throws:
IOException
-
testAdminAllowedPrivilegedServletAccess
- Throws:
IOException
-
testNonAdminAllowedUnprivilegedServletAccess
- Throws:
IOException
-
testNonAdminDisallowedPrivilegedServletAccess
- Throws:
IOException
-
testWrongAuthDisallowedUnprivilegedServletAccess
- Throws:
IOException
-
testWrongAuthDisallowedPrivilegedServletAccess
- Throws:
IOException
-