public class TestInfoServersACL extends Object
| Modifier and Type | Field and Description | 
|---|---|
| static HBaseClassTestRule | CLASS_RULE | 
| private static org.apache.hadoop.hbase.LocalHBaseCluster | CLUSTER | 
| private static org.apache.hadoop.conf.Configuration | conf | 
| private static String | HOST | 
| private static String | HTTP_PRINCIPAL | 
| private static org.apache.hadoop.minikdc.MiniKdc | KDC | 
| private static File | KEYTAB_FILE | 
| private static org.slf4j.Logger | LOG | 
| org.junit.rules.TestName | name | 
| private static String | PRINCIPAL | 
| private static String | USER_ADMIN_STR | 
| private static String | USER_NONE_STR | 
| protected static String | USERNAME | 
| private static HBaseTestingUtility | UTIL | 
| Constructor and Description | 
|---|
| TestInfoServersACL() | 
| Modifier and Type | Method and Description | 
|---|---|
| static void | beforeClass() | 
| private org.apache.http.impl.client.CloseableHttpClient | createHttpClient(String clientPrincipal) | 
| private String | getInfoServerHostAndPort() | 
| private org.apache.hadoop.hbase.util.Pair<Integer,String> | getJmxPage() | 
| private org.apache.hadoop.hbase.util.Pair<Integer,String> | getLogLevelPage() | 
| private org.apache.hadoop.hbase.util.Pair<Integer,String> | getLogsPage() | 
| private org.apache.hadoop.hbase.util.Pair<Integer,String> | getMasterDumpPage() | 
| private org.apache.hadoop.hbase.util.Pair<Integer,String> | getMetricsPage() | 
| private org.apache.hadoop.hbase.util.Pair<Integer,String> | getStacksPage() | 
| private org.apache.hadoop.hbase.util.Pair<Integer,String> | getTablePage(org.apache.hadoop.hbase.TableName tn) | 
| private org.apache.hadoop.hbase.util.Pair<Integer,String> | getUrlContent(URL url)Retrieves the content of the specified URL. | 
| static void | shutDownMiniCluster()Helper method to shut down the cluster (if running) | 
| void | testAuthorizedUser() | 
| void | testDumpActionsAvailableForAdmins() | 
| void | testJmxAvailableForAdmins() | 
| void | testLogsAvailableForAdmins() | 
| void | testMetricsAvailableForAdmins() | 
| void | testStackActionsAvailableForAdmins() | 
| void | testTableActionsAvailableForAdmins() | 
| void | testUnauthorizedUser() | 
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final HBaseTestingUtility UTIL
private static org.apache.hadoop.conf.Configuration conf
private static org.apache.hadoop.hbase.LocalHBaseCluster CLUSTER
private static final File KEYTAB_FILE
private static org.apache.hadoop.minikdc.MiniKdc KDC
private static String HTTP_PRINCIPAL
public org.junit.rules.TestName name
private static final String USER_ADMIN_STR
private static final String USER_NONE_STR
public TestInfoServersACL()
public static void beforeClass() throws Exception
Exceptionpublic static void shutDownMiniCluster() throws Exception
Exceptionpublic void testAuthorizedUser() throws Exception
Exceptionpublic void testUnauthorizedUser() throws Exception
Exceptionpublic void testTableActionsAvailableForAdmins() throws Exception
Exceptionpublic void testLogsAvailableForAdmins() throws Exception
Exceptionpublic void testDumpActionsAvailableForAdmins() throws Exception
Exceptionpublic void testStackActionsAvailableForAdmins() throws Exception
Exceptionpublic void testJmxAvailableForAdmins() throws Exception
Exceptionpublic void testMetricsAvailableForAdmins() throws Exception
Exceptionprivate String getInfoServerHostAndPort()
private org.apache.hadoop.hbase.util.Pair<Integer,String> getLogLevelPage() throws Exception
Exceptionprivate org.apache.hadoop.hbase.util.Pair<Integer,String> getTablePage(org.apache.hadoop.hbase.TableName tn) throws Exception
Exceptionprivate org.apache.hadoop.hbase.util.Pair<Integer,String> getLogsPage() throws Exception
Exceptionprivate org.apache.hadoop.hbase.util.Pair<Integer,String> getMasterDumpPage() throws Exception
Exceptionprivate org.apache.hadoop.hbase.util.Pair<Integer,String> getStacksPage() throws Exception
Exceptionprivate org.apache.hadoop.hbase.util.Pair<Integer,String> getJmxPage() throws Exception
Exceptionprivate org.apache.hadoop.hbase.util.Pair<Integer,String> getMetricsPage() throws Exception
Exceptionprivate org.apache.hadoop.hbase.util.Pair<Integer,String> getUrlContent(URL url) throws Exception
Exceptionprivate org.apache.http.impl.client.CloseableHttpClient createHttpClient(String clientPrincipal) throws Exception
ExceptionCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.