Class TestCellACLWithMultipleVersions
java.lang.Object
org.apache.hadoop.hbase.security.access.SecureTestUtil
org.apache.hadoop.hbase.security.access.TestCellACLWithMultipleVersions
-
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 HBaseTestingUtil
private static final byte[]
private static org.apache.hadoop.hbase.security.User
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 TypeMethodDescriptionprivate SecureTestUtil.AccessTestAction
getDeleteFamilyAction
(byte[] fam) prepareCellPermissions
(String[] users, org.apache.hadoop.hbase.security.access.Permission.Action... action) void
setUp()
static void
void
tearDown()
static void
void
void
void
void
void
void
void
void
private void
verifyUserAllowedforCheckAndDelete
(org.apache.hadoop.hbase.security.User user, byte[] row, byte[] q1, byte[] value) private void
verifyUserDeniedForCheckAndDelete
(org.apache.hadoop.hbase.security.User user, byte[] row, byte[] value) private void
verifyUserDeniedForDeleteExactVersion
(org.apache.hadoop.hbase.security.User user, byte[] row, byte[] q1, byte[] q2) private void
verifyUserDeniedForDeleteMultipleVersions
(org.apache.hadoop.hbase.security.User user, byte[] row, byte[] q1, byte[] q2) private void
verifyUserDeniedForIncrementMultipleVersions
(org.apache.hadoop.hbase.security.User user, byte[] row, byte[] q1) private void
verifyUserDeniedForPutMultipleVersions
(org.apache.hadoop.hbase.security.User user, byte[] row, byte[] q1, byte[] q2, byte[] value) Methods inherited from class org.apache.hadoop.hbase.security.access.SecureTestUtil
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
-
Field Details
-
CLASS_RULE
-
LOG
-
testTable
-
TEST_UTIL
-
TEST_FAMILY1
-
TEST_FAMILY2
-
TEST_ROW
-
TEST_Q1
-
TEST_Q2
-
ZERO
-
ONE
-
TWO
-
conf
-
GROUP
- See Also:
-
GROUP_USER
-
USER_OWNER
-
USER_OTHER
-
USER_OTHER2
-
usersAndGroups
-
-
Constructor Details
-
TestCellACLWithMultipleVersions
public TestCellACLWithMultipleVersions()
-
-
Method Details
-
setupBeforeClass
- Throws:
Exception
-
tearDownAfterClass
- Throws:
Exception
-
setUp
- Throws:
Exception
-
testCellPermissionwithVersions
- 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) -
testCellPermissionsWithDeleteMutipleVersions
- Throws:
Exception
-
verifyUserDeniedForDeleteMultipleVersions
private void verifyUserDeniedForDeleteMultipleVersions(org.apache.hadoop.hbase.security.User user, byte[] row, byte[] q1, byte[] q2) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
testDeleteWithFutureTimestamp
- Throws:
Exception
-
getDeleteFamilyAction
-
testCellPermissionsWithDeleteWithUserTs
- Throws:
Exception
-
testCellPermissionsWithDeleteExactVersion
- Throws:
Exception
-
verifyUserDeniedForDeleteExactVersion
private void verifyUserDeniedForDeleteExactVersion(org.apache.hadoop.hbase.security.User user, byte[] row, byte[] q1, byte[] q2) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
testCellPermissionsForIncrementWithMultipleVersions
- Throws:
Exception
-
verifyUserDeniedForIncrementMultipleVersions
private void verifyUserDeniedForIncrementMultipleVersions(org.apache.hadoop.hbase.security.User user, byte[] row, byte[] q1) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
testCellPermissionsForPutWithMultipleVersions
- Throws:
Exception
-
verifyUserDeniedForPutMultipleVersions
private void verifyUserDeniedForPutMultipleVersions(org.apache.hadoop.hbase.security.User user, byte[] row, byte[] q1, byte[] q2, byte[] value) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
testCellPermissionsForCheckAndDelete
- Throws:
Exception
-
verifyUserAllowedforCheckAndDelete
private void verifyUserAllowedforCheckAndDelete(org.apache.hadoop.hbase.security.User user, byte[] row, byte[] q1, byte[] value) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
verifyUserDeniedForCheckAndDelete
private void verifyUserDeniedForCheckAndDelete(org.apache.hadoop.hbase.security.User user, byte[] row, byte[] value) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
tearDown
- Throws:
Exception
-