public class TestAccessController2 extends SecureTestUtil
Modifier and Type | Class and Description |
---|---|
static class |
TestAccessController2.MyAccessController |
SecureTestUtil.AccessTestAction, SecureTestUtil.MasterSyncObserver
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static org.apache.hadoop.conf.Configuration |
conf |
private static org.slf4j.Logger |
LOG |
private String |
namespace |
private static byte[] |
Q1 |
private static byte[] |
Q2 |
private static org.apache.hadoop.hbase.client.Connection |
systemUserConnection
The systemUserConnection created here is tied to the system user.
|
private org.apache.hadoop.hbase.TableName |
tableName |
private static byte[] |
TEST_FAMILY |
private static byte[] |
TEST_FAMILY_2 |
private static byte[] |
TEST_QUALIFIER |
private static byte[] |
TEST_ROW |
private static byte[] |
TEST_ROW_2 |
private static byte[] |
TEST_ROW_3 |
TestTableName |
TEST_TABLE |
private static HBaseTestingUtility |
TEST_UTIL |
private static byte[] |
TEST_VALUE |
private static String |
TESTGROUP_1 |
private static String |
TESTGROUP_1_NAME |
private static String |
TESTGROUP_2 |
private static org.apache.hadoop.hbase.security.User |
TESTGROUP1_USER1 |
private static org.apache.hadoop.hbase.security.User |
TESTGROUP2_USER1 |
private String |
tname |
private static byte[] |
value1 |
private static byte[] |
value2 |
Constructor and Description |
---|
TestAccessController2() |
Modifier and Type | Method and Description |
---|---|
void |
setUp() |
static void |
setupBeforeClass() |
void |
tearDown() |
static void |
tearDownAfterClass() |
void |
testACLTableAccess() |
void |
testACLZNodeDeletion() |
void |
testCoprocessorLoading() |
void |
testCreateTableWithGroupPermissions() |
void |
testCreateWithCorrectOwner() |
void |
testPostGrantAndRevokeScanAction() |
checkGlobalPerms, checkTablePerms, checkTablePerms, checkTablePerms, checkTablePerms, configureSuperuser, convertToNamespace, createNamespace, createTable, createTable, createTable, createTable, createTable, deleteNamespace, deleteTable, deleteTable, enableSecurity, grantGlobal, grantGlobalUsingAccessControlClient, grantOnNamespace, grantOnNamespaceUsingAccessControlClient, grantOnTable, grantOnTableUsingAccessControlClient, revokeFromNamespace, revokeFromNamespaceUsingAccessControlClient, revokeFromTable, revokeFromTableUsingAccessControlClient, revokeGlobal, revokeGlobalUsingAccessControlClient, verifyAllowed, verifyAllowed, verifyAllowed, verifyConfiguration, verifyDenied, verifyDenied, verifyIfEmptyList, verifyIfNull
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final byte[] TEST_ROW
private static final byte[] TEST_FAMILY
private static final byte[] TEST_QUALIFIER
private static final byte[] TEST_VALUE
private static HBaseTestingUtility TEST_UTIL
private static org.apache.hadoop.conf.Configuration conf
private static org.apache.hadoop.hbase.client.Connection systemUserConnection
private static final byte[] Q1
private static final byte[] value1
private static byte[] TEST_FAMILY_2
private static byte[] TEST_ROW_2
private static final byte[] Q2
private static final byte[] value2
private static byte[] TEST_ROW_3
private static final String TESTGROUP_1
private static final String TESTGROUP_2
private static org.apache.hadoop.hbase.security.User TESTGROUP1_USER1
private static org.apache.hadoop.hbase.security.User TESTGROUP2_USER1
public TestTableName TEST_TABLE
private org.apache.hadoop.hbase.TableName tableName
private static String TESTGROUP_1_NAME
public TestAccessController2()
public static void setupBeforeClass() throws Exception
Exception
public static void tearDownAfterClass() throws Exception
Exception
public void testCreateWithCorrectOwner() throws Exception
Exception
public void testCreateTableWithGroupPermissions() throws Exception
Exception
public void testACLTableAccess() throws Exception
Exception
public void testPostGrantAndRevokeScanAction() throws Exception
Exception
public void testCoprocessorLoading() throws Exception
Exception
public void testACLZNodeDeletion() throws Exception
Exception
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.