public class TestCoprocessorWhitelistMasterObserver extends SecureTestUtil
Modifier and Type | Class and Description |
---|---|
static class |
TestCoprocessorWhitelistMasterObserver.TestRegionObserver |
SecureTestUtil.AccessTestAction, SecureTestUtil.MasterSyncObserver
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static org.slf4j.Logger |
LOG |
private static byte[] |
TEST_FAMILY |
private static org.apache.hadoop.hbase.TableName |
TEST_TABLE |
private static HBaseTestingUtility |
UTIL |
Constructor and Description |
---|
TestCoprocessorWhitelistMasterObserver() |
Modifier and Type | Method and Description |
---|---|
private static void |
negativeTestCase(String[] whitelistedPaths,
String coprocessorPath)
Test a table modification adding a coprocessor path which is whitelisted
|
private static void |
positiveTestCase(String[] whitelistedPaths,
String coprocessorPath)
Test a table modification adding a coprocessor path which is not whitelisted
|
void |
tearDownTestCoprocessorWhitelistMasterObserver() |
void |
testBlanketWhitelist()
Test a table modification adding a coprocessor path which is whitelisted
|
void |
testCreationClasspathCoprocessor()
Test a table creation including a coprocessor path which is on the classpath
|
void |
testCreationNonWhitelistedCoprocessorPath()
Test a table creation including a coprocessor path which is not whitelisted
|
void |
testDFSNameNotWhitelistedFails()
Test a table modification adding a coprocessor path which is whitelisted
|
void |
testDFSNameWhitelistedWorks()
Test a table modification adding a coprocessor path which is whitelisted
|
void |
testDifferentFileSystemNonWhitelisted()
Test a table creation including a coprocessor path which is not whitelisted
|
void |
testSchemeAndDirectorywhitelisted()
Test a table modification adding a coprocessor path which is whitelisted
|
void |
testSchemeWhitelisted()
Test a table modification adding a coprocessor path which is whitelisted
|
void |
testSubstringNonWhitelisted()
Test a table modification adding a coprocessor path which is not whitelisted
|
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 UTIL
private static final org.apache.hadoop.hbase.TableName TEST_TABLE
private static final byte[] TEST_FAMILY
public TestCoprocessorWhitelistMasterObserver()
public void tearDownTestCoprocessorWhitelistMasterObserver() throws Exception
Exception
private static void positiveTestCase(String[] whitelistedPaths, String coprocessorPath) throws Exception
whitelistedPaths
- A String array of paths to add in for the whitelisting configurationcoprocessorPath
- A String to use as the path for a mock coprocessorException
private static void negativeTestCase(String[] whitelistedPaths, String coprocessorPath) throws Exception
whitelistedPaths
- A String array of paths to add in for the whitelisting configurationcoprocessorPath
- A String to use as the path for a mock coprocessorException
public void testSubstringNonWhitelisted() throws Exception
Exception
public void testDifferentFileSystemNonWhitelisted() throws Exception
Exception
public void testSchemeAndDirectorywhitelisted() throws Exception
Exception
public void testSchemeWhitelisted() throws Exception
Exception
public void testDFSNameWhitelistedWorks() throws Exception
Exception
public void testDFSNameNotWhitelistedFails() throws Exception
Exception
public void testBlanketWhitelist() throws Exception
Exception
public void testCreationNonWhitelistedCoprocessorPath() throws Exception
Exception
public void testCreationClasspathCoprocessor() throws Exception
Exception
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.