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
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static org.apache.hadoop.hbase.LocalHBaseCluster
private static org.apache.hadoop.conf.Configuration
private static String
private static String
private static org.apache.hadoop.minikdc.MiniKdc
private static final File
private static final org.slf4j.Logger
org.junit.rules.TestName
private static String
private static final String
private static final String
protected static String
private static final HBaseTestingUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
private org.apache.http.impl.client.CloseableHttpClient
createHttpClient
(String clientPrincipal) private String
getTablePage
(org.apache.hadoop.hbase.TableName tn) getUrlContent
(URL url) Retrieves the content of the specified URL.static void
Helper method to shut down the cluster (if running)void
void
void
void
void
void
void
void
-
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
-