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 |
private static HBaseTestingUtility |
TEST_UTIL |
TableNameTestRule |
testTable |
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, 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
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 TableNameTestRule testTable
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
Exception
public static void tearDownAfterClass() throws Exception
Exception
public void testCheckPermissions() throws Exception
Exception
public void testPassiveGrantRevoke() throws Exception
Exception
public void testPassiveMasterOperations() throws Exception
Exception
public void testPassiveRegionServerOperations() throws Exception
Exception
public void testPassiveRegionOperations() throws Exception
Exception
public void testPassiveCellPermissions() throws Exception
Exception
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.