public abstract class SnapshotWithAclTestBase extends SecureTestUtil
Modifier and Type | Class and Description |
---|---|
(package private) static class |
SnapshotWithAclTestBase.AccessReadAction |
(package private) class |
SnapshotWithAclTestBase.AccessSnapshotAction |
(package private) static class |
SnapshotWithAclTestBase.AccessWriteAction |
SecureTestUtil.AccessTestAction, SecureTestUtil.MasterSyncObserver
Modifier and Type | Field and Description |
---|---|
private static int |
ROW_COUNT |
private static byte[] |
TEST_FAMILY |
private static byte[] |
TEST_QUALIFIER |
private static byte[] |
TEST_ROW |
private org.apache.hadoop.hbase.TableName |
TEST_TABLE |
protected static HBaseTestingUtility |
TEST_UTIL |
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_RO |
private static org.apache.hadoop.hbase.security.User |
USER_RW |
Constructor and Description |
---|
SnapshotWithAclTestBase() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
cloneSnapshot(String snapshotName,
org.apache.hadoop.hbase.TableName tableName,
boolean restoreAcl) |
private void |
loadData() |
protected abstract void |
restoreSnapshot(String snapshotName,
boolean restoreAcl) |
void |
setUp() |
static void |
setupBeforeClass() |
protected abstract void |
snapshot(String snapshotName,
org.apache.hadoop.hbase.TableName tableName) |
static void |
tearDownAfterClass() |
void |
testDeleteSnapshot() |
void |
testRestoreSnapshot() |
private void |
verifyRows(org.apache.hadoop.hbase.TableName tableName) |
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
private org.apache.hadoop.hbase.TableName TEST_TABLE
private static final int ROW_COUNT
private static byte[] TEST_FAMILY
private static byte[] TEST_QUALIFIER
private static byte[] TEST_ROW
protected static HBaseTestingUtility TEST_UTIL
private static org.apache.hadoop.hbase.security.User USER_OWNER
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_NONE
public SnapshotWithAclTestBase()
public static void setupBeforeClass() throws Exception
Exception
private void loadData() throws IOException
IOException
public static void tearDownAfterClass() throws Exception
Exception
private void verifyRows(org.apache.hadoop.hbase.TableName tableName) throws IOException
IOException
protected abstract void snapshot(String snapshotName, org.apache.hadoop.hbase.TableName tableName) throws Exception
Exception
protected abstract void cloneSnapshot(String snapshotName, org.apache.hadoop.hbase.TableName tableName, boolean restoreAcl) throws Exception
Exception
protected abstract void restoreSnapshot(String snapshotName, boolean restoreAcl) throws Exception
Exception
public void testRestoreSnapshot() throws Exception
Exception
public void testDeleteSnapshot() throws Exception
Exception
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.