public class TestRpcAccessChecks extends Object
Modifier and Type | Class and Description |
---|---|
(package private) static interface |
TestRpcAccessChecks.Action |
static class |
TestRpcAccessChecks.DummyCpService |
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static org.apache.hadoop.conf.Configuration |
conf |
private static String |
GROUP_ADMIN |
org.junit.rules.TestName |
TEST_NAME |
private static HBaseTestingUtility |
TEST_UTIL |
private static org.apache.hadoop.hbase.security.User |
USER_ADMIN |
private static org.apache.hadoop.hbase.security.User |
USER_GROUP_ADMIN |
private static org.apache.hadoop.hbase.security.User |
USER_NON_ADMIN |
Constructor and Description |
---|
TestRpcAccessChecks() |
Modifier and Type | Method and Description |
---|---|
private static void |
enableSecurity(org.apache.hadoop.conf.Configuration conf) |
static void |
setup() |
void |
testCleanerChoreRunning() |
void |
testEnableCatalogJanitor() |
void |
testExecProcedure() |
void |
testExecProcedureWithRet() |
void |
testExecRegionServerService() |
void |
testExecService() |
void |
testNormalize() |
void |
testRunCatalogJanitor() |
void |
testRunCleanerChore() |
void |
testSetNormalizerRunning() |
void |
testTableFlush() |
void |
testTableFlushAndSnapshot() |
private void |
verifiedDeniedServiceException(org.apache.hadoop.hbase.security.User user,
TestRpcAccessChecks.Action action) |
private void |
verifyAdminCheckForAction(TestRpcAccessChecks.Action action) |
private void |
verifyAllowed(org.apache.hadoop.hbase.security.User user,
TestRpcAccessChecks.Action action) |
private void |
verifyDenied(org.apache.hadoop.hbase.security.User user,
TestRpcAccessChecks.Action action) |
public static final HBaseClassTestRule CLASS_RULE
public final org.junit.rules.TestName TEST_NAME
private static final HBaseTestingUtility TEST_UTIL
private static org.apache.hadoop.conf.Configuration conf
private static org.apache.hadoop.hbase.security.User USER_ADMIN
private static org.apache.hadoop.hbase.security.User USER_NON_ADMIN
private static final String GROUP_ADMIN
private static org.apache.hadoop.hbase.security.User USER_GROUP_ADMIN
public TestRpcAccessChecks()
private static void enableSecurity(org.apache.hadoop.conf.Configuration conf) throws IOException
IOException
private void verifyAllowed(org.apache.hadoop.hbase.security.User user, TestRpcAccessChecks.Action action) throws Exception
Exception
private void verifyDenied(org.apache.hadoop.hbase.security.User user, TestRpcAccessChecks.Action action) throws Exception
Exception
private void verifiedDeniedServiceException(org.apache.hadoop.hbase.security.User user, TestRpcAccessChecks.Action action) throws Exception
Exception
private void verifyAdminCheckForAction(TestRpcAccessChecks.Action action) throws Exception
Exception
public void testEnableCatalogJanitor() throws Exception
Exception
public void testRunCatalogJanitor() throws Exception
Exception
public void testCleanerChoreRunning() throws Exception
Exception
public void testRunCleanerChore() throws Exception
Exception
public void testExecProcedure() throws Exception
Exception
public void testExecService() throws Exception
Exception
public void testExecProcedureWithRet() throws Exception
Exception
public void testNormalize() throws Exception
Exception
public void testSetNormalizerRunning() throws Exception
Exception
public void testExecRegionServerService() throws Exception
Exception
public void testTableFlush() throws Exception
Exception
public void testTableFlushAndSnapshot() throws Exception
Exception
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.