public class TestRSGroupsWithACL extends SecureTestUtil
SecureTestUtil.AccessTestAction, SecureTestUtil.MasterSyncObserver
Modifier and Type | Field and Description |
---|---|
private static org.apache.hadoop.hbase.security.access.AccessChecker |
accessChecker |
static HBaseClassTestRule |
CLASS_RULE |
private static org.apache.hadoop.conf.Configuration |
conf |
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 |
private static org.apache.hadoop.hbase.master.HMaster |
master |
private static org.apache.hadoop.hbase.security.User |
SUPERUSER |
private static org.apache.hadoop.hbase.client.Connection |
systemUserConnection |
private static byte[] |
TEST_FAMILY |
private static org.apache.hadoop.hbase.TableName |
TEST_TABLE |
private static HBaseTestingUtil |
TEST_UTIL |
private static org.apache.hadoop.hbase.security.User |
USER_ADMIN |
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 |
private static org.apache.hadoop.hbase.security.UserProvider |
userProvider |
Constructor and Description |
---|
TestRSGroupsWithACL() |
Modifier and Type | Method and Description |
---|---|
private void |
checkPermission(String request) |
private static void |
cleanUp() |
private org.apache.hadoop.hbase.security.User |
getActiveUser() |
static void |
setupBeforeClass() |
private static void |
setUpTableAndUserPermissions() |
static void |
tearDownAfterClass() |
void |
testAddRSGroup() |
void |
testBalanceRSGroup() |
void |
testGetRSGroupInfo() |
void |
testGetRSGroupInfoOfServer() |
void |
testGetRSGroupInfoOfTable() |
void |
testListRSGroup() |
void |
testMoveServers() |
void |
testMoveServersAndTables() |
void |
testMoveTables() |
void |
testRemoveRSGroup() |
void |
testRemoveServers() |
void |
testRenameRSGroup() |
void |
testUpdateRSGroupConfig() |
private void |
validateAdminPermissions(SecureTestUtil.AccessTestAction action) |
checkGlobalPerms, checkTablePerms, checkTablePerms, configureSuperuser, convertToNamespace, createNamespace, createTable, createTable, createTable, createTable, createTable, createTable, createTable, deleteNamespace, deleteTable, deleteTable, enableSecurity, grantGlobal, grantGlobal, grantGlobalUsingAccessControlClient, grantOnNamespace, grantOnNamespace, grantOnNamespaceUsingAccessControlClient, grantOnTable, grantOnTable, grantOnTableUsingAccessControlClient, revokeFromNamespace, revokeFromNamespace, revokeFromNamespaceUsingAccessControlClient, revokeFromTable, revokeFromTable, revokeFromTableUsingAccessControlClient, revokeGlobal, 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 HBaseTestingUtil 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 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.master.HMaster master
private static org.apache.hadoop.hbase.security.access.AccessChecker accessChecker
private static org.apache.hadoop.hbase.security.UserProvider userProvider
public TestRSGroupsWithACL()
public static void setupBeforeClass() throws Exception
Exception
private void checkPermission(String request) throws IOException
IOException
private org.apache.hadoop.hbase.security.User getActiveUser() throws IOException
IOException
private static void setUpTableAndUserPermissions() throws Exception
Exception
public static void tearDownAfterClass() throws Exception
Exception
public void testGetRSGroupInfo() throws Exception
Exception
public void testGetRSGroupInfoOfTable() throws Exception
Exception
public void testMoveServers() throws Exception
Exception
public void testMoveTables() throws Exception
Exception
public void testAddRSGroup() throws Exception
Exception
public void testRemoveRSGroup() throws Exception
Exception
public void testBalanceRSGroup() throws Exception
Exception
public void testListRSGroup() throws Exception
Exception
public void testGetRSGroupInfoOfServer() throws Exception
Exception
public void testMoveServersAndTables() throws Exception
Exception
public void testRemoveServers() throws Exception
Exception
public void testRenameRSGroup() throws Exception
Exception
public void testUpdateRSGroupConfig() throws Exception
Exception
private void validateAdminPermissions(SecureTestUtil.AccessTestAction action) throws Exception
Exception
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.