Package org.apache.hadoop.hbase.http
Class TestInfoServersACL
java.lang.Object
org.apache.hadoop.hbase.http.TestInfoServersACL
Testing info servers for admin acl.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate static org.apache.hadoop.hbase.LocalHBaseClusterprivate static org.apache.hadoop.conf.Configurationprivate static Stringprivate static Stringprivate static org.apache.hadoop.minikdc.MiniKdcprivate static final Fileprivate static final org.slf4j.Loggerorg.junit.rules.TestNameprivate static Stringprivate static final Stringprivate static final Stringprotected static Stringprivate static final HBaseTestingUtility -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidprivate org.apache.http.impl.client.CloseableHttpClientcreateHttpClient(String clientPrincipal) private StringgetTablePage(org.apache.hadoop.hbase.TableName tn) getUrlContent(URL url) Retrieves the content of the specified URL.static voidHelper method to shut down the cluster (if running)voidvoidvoidvoidvoidvoidvoidvoid
-
Field Details
-
CLASS_RULE
-
LOG
-
UTIL
-
conf
-
USERNAME
-
CLUSTER
-
KEYTAB_FILE
-
KDC
-
HOST
-
PRINCIPAL
-
HTTP_PRINCIPAL
-
name
-
USER_ADMIN_STR
- See Also:
-
USER_NONE_STR
- See Also:
-
-
Constructor Details
-
TestInfoServersACL
public TestInfoServersACL()
-
-
Method Details
-
beforeClass
- Throws:
Exception
-
shutDownMiniCluster
Helper method to shut down the cluster (if running)- Throws:
Exception
-
testAuthorizedUser
- Throws:
Exception
-
testUnauthorizedUser
- Throws:
Exception
-
testTableActionsAvailableForAdmins
- Throws:
Exception
-
testLogsAvailableForAdmins
- Throws:
Exception
-
testDumpActionsAvailableForAdmins
- Throws:
Exception
-
testStackActionsAvailableForAdmins
- Throws:
Exception
-
testJmxAvailableForAdmins
- Throws:
Exception
-
testMetricsAvailableForAdmins
- Throws:
Exception
-
getInfoServerHostAndPort
-
getLogLevelPage
- Throws:
Exception
-
getTablePage
private org.apache.hadoop.hbase.util.Pair<Integer,String> getTablePage(org.apache.hadoop.hbase.TableName tn) throws Exception - Throws:
Exception
-
getLogsPage
- Throws:
Exception
-
getMasterDumpPage
- Throws:
Exception
-
getStacksPage
- Throws:
Exception
-
getJmxPage
- Throws:
Exception
-
getMetricsPage
- Throws:
Exception
-
getUrlContent
Retrieves the content of the specified URL. The content will only be returned if the status code for the operation was HTTP 200/OK.- Throws:
Exception
-
createHttpClient
private org.apache.http.impl.client.CloseableHttpClient createHttpClient(String clientPrincipal) throws Exception - Throws:
Exception
-