public class TestCellACLWithMultipleVersions extends SecureTestUtil
SecureTestUtil.AccessTestAction, SecureTestUtil.MasterSyncObserver
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static org.apache.hadoop.conf.Configuration |
conf |
private static String |
GROUP |
private static org.apache.hadoop.hbase.security.User |
GROUP_USER |
private static org.slf4j.Logger |
LOG |
private static byte[] |
ONE |
private static byte[] |
TEST_FAMILY1 |
private static byte[] |
TEST_FAMILY2 |
private static byte[] |
TEST_Q1 |
private static byte[] |
TEST_Q2 |
private static byte[] |
TEST_ROW |
private static HBaseTestingUtility |
TEST_UTIL |
TableNameTestRule |
testTable |
private static byte[] |
TWO |
private static org.apache.hadoop.hbase.security.User |
USER_OTHER |
private static org.apache.hadoop.hbase.security.User |
USER_OTHER2 |
private static org.apache.hadoop.hbase.security.User |
USER_OWNER |
private static String[] |
usersAndGroups |
private static byte[] |
ZERO |
Constructor and Description |
---|
TestCellACLWithMultipleVersions() |
Modifier and Type | Method and Description |
---|---|
private SecureTestUtil.AccessTestAction |
getDeleteFamilyAction(byte[] fam) |
private Map<String,org.apache.hadoop.hbase.security.access.Permission> |
prepareCellPermissions(String[] users,
org.apache.hadoop.hbase.security.access.Permission.Action... action) |
void |
setUp() |
static void |
setupBeforeClass() |
void |
tearDown() |
static void |
tearDownAfterClass() |
void |
testCellPermissionsForCheckAndDelete() |
void |
testCellPermissionsForIncrementWithMultipleVersions() |
void |
testCellPermissionsForPutWithMultipleVersions() |
void |
testCellPermissionsWithDeleteExactVersion() |
void |
testCellPermissionsWithDeleteMutipleVersions() |
void |
testCellPermissionsWithDeleteWithUserTs() |
void |
testCellPermissionwithVersions() |
void |
testDeleteWithFutureTimestamp() |
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) |
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
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
public TableNameTestRule testTable
private static final HBaseTestingUtility TEST_UTIL
private static final byte[] TEST_FAMILY1
private static final byte[] TEST_FAMILY2
private static final byte[] TEST_ROW
private static final byte[] TEST_Q1
private static final byte[] TEST_Q2
private static final byte[] ZERO
private static final byte[] ONE
private static final byte[] TWO
private static org.apache.hadoop.conf.Configuration conf
private static final String GROUP
private static org.apache.hadoop.hbase.security.User GROUP_USER
private static org.apache.hadoop.hbase.security.User USER_OWNER
private static org.apache.hadoop.hbase.security.User USER_OTHER
private static org.apache.hadoop.hbase.security.User USER_OTHER2
private static String[] usersAndGroups
public TestCellACLWithMultipleVersions()
public static void setupBeforeClass() throws Exception
Exception
public static void tearDownAfterClass() throws Exception
Exception
public void testCellPermissionwithVersions() throws Exception
Exception
private Map<String,org.apache.hadoop.hbase.security.access.Permission> prepareCellPermissions(String[] users, org.apache.hadoop.hbase.security.access.Permission.Action... action)
public void testCellPermissionsWithDeleteMutipleVersions() throws Exception
Exception
private void verifyUserDeniedForDeleteMultipleVersions(org.apache.hadoop.hbase.security.User user, byte[] row, byte[] q1, byte[] q2) throws IOException, InterruptedException
IOException
InterruptedException
public void testDeleteWithFutureTimestamp() throws Exception
Exception
private SecureTestUtil.AccessTestAction getDeleteFamilyAction(byte[] fam)
public void testCellPermissionsWithDeleteWithUserTs() throws Exception
Exception
public void testCellPermissionsWithDeleteExactVersion() throws Exception
Exception
private void verifyUserDeniedForDeleteExactVersion(org.apache.hadoop.hbase.security.User user, byte[] row, byte[] q1, byte[] q2) throws IOException, InterruptedException
IOException
InterruptedException
public void testCellPermissionsForIncrementWithMultipleVersions() throws Exception
Exception
private void verifyUserDeniedForIncrementMultipleVersions(org.apache.hadoop.hbase.security.User user, byte[] row, byte[] q1) throws IOException, InterruptedException
IOException
InterruptedException
public void testCellPermissionsForPutWithMultipleVersions() throws Exception
Exception
private void verifyUserDeniedForPutMultipleVersions(org.apache.hadoop.hbase.security.User user, byte[] row, byte[] q1, byte[] q2, byte[] value) throws IOException, InterruptedException
IOException
InterruptedException
public void testCellPermissionsForCheckAndDelete() throws Exception
Exception
private void verifyUserAllowedforCheckAndDelete(org.apache.hadoop.hbase.security.User user, byte[] row, byte[] q1, byte[] value) throws IOException, InterruptedException
IOException
InterruptedException
private void verifyUserDeniedForCheckAndDelete(org.apache.hadoop.hbase.security.User user, byte[] row, byte[] value) throws IOException, InterruptedException
IOException
InterruptedException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.