public class TestAccessController3 extends SecureTestUtil
Modifier and Type | Class and Description |
---|---|
static class |
TestAccessController3.FaultyAccessController |
SecureTestUtil.AccessTestAction, SecureTestUtil.MasterSyncObserver
Modifier and Type | Field and Description |
---|---|
private static org.apache.hadoop.hbase.security.access.AccessController |
ACCESS_CONTROLLER |
private static boolean |
callSuperTwice |
static HBaseClassTestRule |
CLASS_RULE |
private static org.apache.hadoop.conf.Configuration |
conf |
private static org.apache.hadoop.hbase.coprocessor.MasterCoprocessorEnvironment |
CP_ENV |
private static String |
GROUP_ADMIN |
private static String |
GROUP_CREATE |
private static String |
GROUP_READ |
private static String |
GROUP_WRITE |
private static org.slf4j.Logger |
LOG |
org.junit.rules.TestName |
name |
private static org.apache.hadoop.hbase.coprocessor.RegionCoprocessorEnvironment |
RCP_ENV |
private static org.apache.hadoop.hbase.coprocessor.RegionServerCoprocessorEnvironment |
RSCP_ENV |
private static org.apache.hadoop.hbase.security.User |
SUPERUSER |
private static org.apache.hadoop.hbase.client.Connection |
systemUserConnection
The systemUserConnection created here is tied to the system user.
|
private static byte[] |
TEST_FAMILY |
private static org.apache.hadoop.hbase.TableName |
TEST_TABLE |
private static HBaseTestingUtility |
TEST_UTIL |
private static org.apache.hadoop.hbase.security.User |
USER_ADMIN |
private static org.apache.hadoop.hbase.security.User |
USER_ADMIN_CF |
private static org.apache.hadoop.hbase.security.User |
USER_CREATE |
private static org.apache.hadoop.hbase.security.User |
USER_GROUP_ADMIN |
private static org.apache.hadoop.hbase.security.User |
USER_GROUP_CREATE |
private static org.apache.hadoop.hbase.security.User |
USER_GROUP_READ |
private static org.apache.hadoop.hbase.security.User |
USER_GROUP_WRITE |
private static org.apache.hadoop.hbase.security.User |
USER_NONE |
private static org.apache.hadoop.hbase.security.User |
USER_OWNER |
private static org.apache.hadoop.hbase.security.User |
USER_RO |
private static org.apache.hadoop.hbase.security.User |
USER_RW |
Constructor and Description |
---|
TestAccessController3() |
Modifier and Type | Method and Description |
---|---|
private static void |
cleanUp() |
static void |
setupBeforeClass() |
private static void |
setUpTableAndUserPermissions() |
static void |
tearDownAfterClass() |
void |
testTableCreate() |
checkGlobalPerms, checkTablePerms, checkTablePerms, checkTablePerms, checkTablePerms, configureSuperuser, convertToNamespace, createNamespace, createTable, createTable, createTable, createTable, createTable, deleteNamespace, deleteTable, deleteTable, enableSecurity, grantGlobal, grantGlobalUsingAccessControlClient, grantOnNamespace, grantOnNamespaceUsingAccessControlClient, grantOnTable, grantOnTableUsingAccessControlClient, revokeFromNamespace, revokeFromNamespaceUsingAccessControlClient, revokeFromTable, revokeFromTableUsingAccessControlClient, revokeGlobal, revokeGlobalUsingAccessControlClient, verifyAllowed, verifyAllowed, verifyAllowed, verifyConfiguration, verifyDenied, verifyDenied, verifyIfEmptyList, verifyIfNull
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static org.apache.hadoop.hbase.TableName TEST_TABLE
private static final HBaseTestingUtility TEST_UTIL
private static org.apache.hadoop.conf.Configuration conf
private static org.apache.hadoop.hbase.client.Connection systemUserConnection
private static org.apache.hadoop.hbase.security.User SUPERUSER
private static org.apache.hadoop.hbase.security.User USER_ADMIN
private static org.apache.hadoop.hbase.security.User USER_RW
private static org.apache.hadoop.hbase.security.User USER_RO
private static org.apache.hadoop.hbase.security.User USER_OWNER
private static org.apache.hadoop.hbase.security.User USER_CREATE
private static org.apache.hadoop.hbase.security.User USER_NONE
private static org.apache.hadoop.hbase.security.User USER_ADMIN_CF
private static final String GROUP_ADMIN
private static final String GROUP_CREATE
private static final String GROUP_READ
private static final String GROUP_WRITE
private static org.apache.hadoop.hbase.security.User USER_GROUP_ADMIN
private static org.apache.hadoop.hbase.security.User USER_GROUP_CREATE
private static org.apache.hadoop.hbase.security.User USER_GROUP_READ
private static org.apache.hadoop.hbase.security.User USER_GROUP_WRITE
private static byte[] TEST_FAMILY
private static org.apache.hadoop.hbase.coprocessor.MasterCoprocessorEnvironment CP_ENV
private static org.apache.hadoop.hbase.security.access.AccessController ACCESS_CONTROLLER
private static org.apache.hadoop.hbase.coprocessor.RegionServerCoprocessorEnvironment RSCP_ENV
private static org.apache.hadoop.hbase.coprocessor.RegionCoprocessorEnvironment RCP_ENV
private static boolean callSuperTwice
public org.junit.rules.TestName name
public TestAccessController3()
public static void setupBeforeClass() throws Exception
Exception
public static void tearDownAfterClass() throws Exception
Exception
private static void setUpTableAndUserPermissions() throws Exception
Exception
public void testTableCreate() throws Exception
Exception
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.