public class TestWithDisabledAuthorization extends SecureTestUtil
SecureTestUtil.AccessTestAction, SecureTestUtil.MasterSyncObserver| Modifier and Type | Field and Description |
|---|---|
private static org.apache.hadoop.hbase.security.access.AccessController |
ACCESS_CONTROLLER |
static HBaseClassTestRule |
CLASS_RULE |
private static org.apache.hadoop.hbase.coprocessor.MasterCoprocessorEnvironment |
CP_ENV |
private static org.slf4j.Logger |
LOG |
private org.apache.hadoop.hbase.coprocessor.RegionCoprocessorEnvironment |
RCP_ENV |
private static org.apache.hadoop.hbase.coprocessor.RegionServerCoprocessorEnvironment |
RSCP_ENV |
private static org.apache.hadoop.hbase.security.User |
SUPERUSER |
private static byte[] |
TEST_FAMILY |
private static byte[] |
TEST_FAMILY2 |
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 |
TestTableName |
TEST_TABLE |
private static HBaseTestingUtility |
TEST_UTIL |
private static org.apache.hadoop.hbase.security.User |
USER_ADMIN |
private static org.apache.hadoop.hbase.security.User |
USER_CREATE |
private static org.apache.hadoop.hbase.security.User |
USER_NONE |
private static org.apache.hadoop.hbase.security.User |
USER_OWNER |
private static org.apache.hadoop.hbase.security.User |
USER_QUAL |
private static org.apache.hadoop.hbase.security.User |
USER_RO |
private static org.apache.hadoop.hbase.security.User |
USER_RW |
private static byte[] |
ZERO |
| Constructor and Description |
|---|
TestWithDisabledAuthorization() |
| Modifier and Type | Method and Description |
|---|---|
void |
setUp() |
static void |
setupBeforeClass() |
void |
tearDown() |
static void |
tearDownAfterClass() |
void |
testCheckPermissions() |
void |
testPassiveCellPermissions() |
void |
testPassiveGrantRevoke()
Test grants and revocations with authorization disabled
|
void |
testPassiveMasterOperations()
Test master observer
|
void |
testPassiveRegionOperations()
Test region observer
|
void |
testPassiveRegionServerOperations()
Test region server observer
|
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, verifyIfNullpublic static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final HBaseTestingUtility TEST_UTIL
private static final byte[] TEST_FAMILY
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[] TEST_Q3
private static final byte[] TEST_Q4
private static final byte[] ZERO
private static org.apache.hadoop.hbase.coprocessor.MasterCoprocessorEnvironment CP_ENV
private static org.apache.hadoop.hbase.security.access.AccessController ACCESS_CONTROLLER
private static org.apache.hadoop.hbase.coprocessor.RegionServerCoprocessorEnvironment RSCP_ENV
private org.apache.hadoop.hbase.coprocessor.RegionCoprocessorEnvironment RCP_ENV
public TestTableName TEST_TABLE
private static org.apache.hadoop.hbase.security.User SUPERUSER
private static org.apache.hadoop.hbase.security.User USER_ADMIN
private static org.apache.hadoop.hbase.security.User USER_RW
private static org.apache.hadoop.hbase.security.User USER_RO
private static org.apache.hadoop.hbase.security.User USER_OWNER
private static org.apache.hadoop.hbase.security.User USER_CREATE
private static org.apache.hadoop.hbase.security.User USER_NONE
private static org.apache.hadoop.hbase.security.User USER_QUAL
public TestWithDisabledAuthorization()
public static void setupBeforeClass() throws Exception
Exceptionpublic static void tearDownAfterClass() throws Exception
Exceptionpublic void testCheckPermissions() throws Exception
Exceptionpublic void testPassiveGrantRevoke() throws Exception
Exceptionpublic void testPassiveMasterOperations() throws Exception
Exceptionpublic void testPassiveRegionServerOperations() throws Exception
Exceptionpublic void testPassiveRegionOperations() throws Exception
Exceptionpublic void testPassiveCellPermissions() throws Exception
ExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.