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
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate static org.apache.hadoop.conf.Configurationprivate static final Stringprivate static org.apache.hadoop.hbase.security.Userprivate static final org.slf4j.Loggerprivate 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 HBaseTestingUtilityprivate static final byte[]private static org.apache.hadoop.hbase.security.Userprivate static org.apache.hadoop.hbase.security.Userprivate static org.apache.hadoop.hbase.security.Userprivate static String[]private static final byte[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate SecureTestUtil.AccessTestActiongetDeleteFamilyAction(byte[] fam) prepareCellPermissions(String[] users, org.apache.hadoop.hbase.security.access.Permission.Action... action) voidsetUp()static voidvoidtearDown()static voidvoidvoidvoidvoidvoidvoidvoidvoidprivate voidverifyUserAllowedforCheckAndDelete(org.apache.hadoop.hbase.security.User user, byte[] row, byte[] q1, byte[] value) private voidverifyUserDeniedForCheckAndDelete(org.apache.hadoop.hbase.security.User user, byte[] row, byte[] value) private voidverifyUserDeniedForDeleteExactVersion(org.apache.hadoop.hbase.security.User user, byte[] row, byte[] q1, byte[] q2) private voidverifyUserDeniedForDeleteMultipleVersions(org.apache.hadoop.hbase.security.User user, byte[] row, byte[] q1, byte[] q2) private voidverifyUserDeniedForIncrementMultipleVersions(org.apache.hadoop.hbase.security.User user, byte[] row, byte[] q1) private voidverifyUserDeniedForPutMultipleVersions(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, 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:
IOExceptionInterruptedException
-
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:
IOExceptionInterruptedException
-
testCellPermissionsForIncrementWithMultipleVersions
- Throws:
Exception
-
verifyUserDeniedForIncrementMultipleVersions
private void verifyUserDeniedForIncrementMultipleVersions(org.apache.hadoop.hbase.security.User user, byte[] row, byte[] q1) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
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:
IOExceptionInterruptedException
-
testCellPermissionsForCheckAndDelete
- Throws:
Exception
-
verifyUserAllowedforCheckAndDelete
private void verifyUserAllowedforCheckAndDelete(org.apache.hadoop.hbase.security.User user, byte[] row, byte[] q1, byte[] value) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
verifyUserDeniedForCheckAndDelete
private void verifyUserDeniedForCheckAndDelete(org.apache.hadoop.hbase.security.User user, byte[] row, byte[] value) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
tearDown
- Throws:
Exception
-