Class TestCellACLs
java.lang.Object
org.apache.hadoop.hbase.security.access.SecureTestUtil
org.apache.hadoop.hbase.security.access.TestCellACLs
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.security.access.SecureTestUtil
SecureTestUtil.AccessTestAction, SecureTestUtil.MasterSyncObserver
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static org.apache.hadoop.conf.Configuration
private static final String
private static org.apache.hadoop.hbase.security.User
private static final org.slf4j.Logger
private static final byte[]
private static final byte[]
private static final byte[]
private static final byte[]
private static final byte[]
private static final byte[]
private static final byte[]
private static final HBaseTestingUtility
private static org.apache.hadoop.hbase.security.User
private static org.apache.hadoop.hbase.security.User
private static String[]
private static final byte[]
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprepareCellPermissions
(String[] users, org.apache.hadoop.hbase.security.access.Permission.Action... action) void
setUp()
static void
void
tearDown()
static void
void
void
Insure we are not granting access in the absence of any cells found when scanning for covered cells.private void
verifyUserAllowedForRead
(org.apache.hadoop.hbase.security.User user) private void
verifyUserDeniedForWrite
(org.apache.hadoop.hbase.security.User user, byte[] value) Methods inherited from class org.apache.hadoop.hbase.security.access.SecureTestUtil
checkGlobalPerms, checkTablePerms, checkTablePerms, configureSuperuser, convertToNamespace, createNamespace, 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
-
Field Details
-
CLASS_RULE
-
LOG
-
testTable
-
TEST_UTIL
-
TEST_FAMILY
-
TEST_ROW
-
TEST_Q1
-
TEST_Q2
-
TEST_Q3
-
TEST_Q4
-
ZERO
-
ONE
-
conf
-
GROUP
- See Also:
-
GROUP_USER
-
USER_OWNER
-
USER_OTHER
-
usersAndGroups
-
-
Constructor Details
-
TestCellACLs
public TestCellACLs()
-
-
Method Details
-
setupBeforeClass
- Throws:
Exception
-
tearDownAfterClass
- Throws:
Exception
-
setUp
- Throws:
Exception
-
testCellPermissions
- Throws:
Exception
-
testCoveringCheck
Insure we are not granting access in the absence of any cells found when scanning for covered cells.- Throws:
Exception
-
verifyUserDeniedForWrite
private void verifyUserDeniedForWrite(org.apache.hadoop.hbase.security.User user, byte[] value) throws Exception - Throws:
Exception
-
verifyUserAllowedForRead
- Throws:
Exception
-
prepareCellPermissions
private Map<String,org.apache.hadoop.hbase.security.access.Permission> prepareCellPermissions(String[] users, org.apache.hadoop.hbase.security.access.Permission.Action... action) -
tearDown
- Throws:
Exception
-