public class TestCellACLs 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_FAMILY |
private static byte[] |
TEST_Q1 |
private static byte[] |
TEST_Q2 |
private static byte[] |
TEST_Q3 |
private static byte[] |
TEST_Q4 |
private static byte[] |
TEST_ROW |
private static HBaseTestingUtility |
TEST_UTIL |
TableNameTestRule |
testTable |
private static org.apache.hadoop.hbase.security.User |
USER_OTHER |
private static org.apache.hadoop.hbase.security.User |
USER_OWNER |
private static String[] |
usersAndGroups |
private static byte[] |
ZERO |
Constructor and Description |
---|
TestCellACLs() |
Modifier and Type | Method and Description |
---|---|
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 |
testCellPermissions() |
void |
testCoveringCheck()
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) |
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_FAMILY
private static final byte[] TEST_ROW
private static final byte[] TEST_Q1
private static final byte[] TEST_Q2
private static final byte[] TEST_Q3
private static final byte[] TEST_Q4
private static final byte[] ZERO
private static final byte[] ONE
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 String[] usersAndGroups
public TestCellACLs()
public static void setupBeforeClass() throws Exception
Exception
public static void tearDownAfterClass() throws Exception
Exception
public void testCellPermissions() throws Exception
Exception
public void testCoveringCheck() throws Exception
Exception
private void verifyUserDeniedForWrite(org.apache.hadoop.hbase.security.User user, byte[] value) throws Exception
Exception
private void verifyUserAllowedForRead(org.apache.hadoop.hbase.security.User user) 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)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.