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
Exception
public static void shutDownMiniCluster() throws Exception
Exception
public void testAuthorizedUser() throws Exception
Exception
public void testUnauthorizedUser() throws Exception
Exception
public void testTableActionsAvailableForAdmins() throws Exception
Exception
public void testLogsAvailableForAdmins() throws Exception
Exception
public void testDumpActionsAvailableForAdmins() throws Exception
Exception
public void testStackActionsAvailableForAdmins() throws Exception
Exception
public void testJmxAvailableForAdmins() throws Exception
Exception
public void testMetricsAvailableForAdmins() throws Exception
Exception
private String getInfoServerHostAndPort()
private org.apache.hadoop.hbase.util.Pair<Integer,String> getLogLevelPage() throws Exception
Exception
private org.apache.hadoop.hbase.util.Pair<Integer,String> getTablePage(org.apache.hadoop.hbase.TableName tn) throws Exception
Exception
private org.apache.hadoop.hbase.util.Pair<Integer,String> getLogsPage() throws Exception
Exception
private org.apache.hadoop.hbase.util.Pair<Integer,String> getMasterDumpPage() throws Exception
Exception
private org.apache.hadoop.hbase.util.Pair<Integer,String> getStacksPage() throws Exception
Exception
private org.apache.hadoop.hbase.util.Pair<Integer,String> getJmxPage() throws Exception
Exception
private org.apache.hadoop.hbase.util.Pair<Integer,String> getMetricsPage() throws Exception
Exception
private org.apache.hadoop.hbase.util.Pair<Integer,String> getUrlContent(URL url) throws Exception
Exception
private org.apache.http.impl.client.CloseableHttpClient createHttpClient(String clientPrincipal) throws Exception
Exception
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.