public class TestSnapshotScannerHDFSAclController extends Object
Modifier and Type | Field and Description |
---|---|
private static org.apache.hadoop.hbase.client.Table |
aclTable |
private static org.apache.hadoop.hbase.client.Admin |
admin |
static HBaseClassTestRule |
CLASS_RULE |
private static org.apache.hadoop.conf.Configuration |
conf |
private static org.apache.hadoop.fs.FileSystem |
FS |
private static org.apache.hadoop.hbase.security.access.SnapshotScannerHDFSAclHelper |
helper |
private static org.slf4j.Logger |
LOG |
org.junit.rules.TestName |
name |
private static org.apache.hadoop.fs.Path |
rootDir |
private static HBaseTestingUtility |
TEST_UTIL |
private static String |
UN_GRANT_USER |
private static org.apache.hadoop.hbase.security.User |
unGrantUser |
Constructor and Description |
---|
TestSnapshotScannerHDFSAclController() |
Modifier and Type | Method and Description |
---|---|
(package private) static void |
checkUserAclEntry(org.apache.hadoop.fs.FileSystem fs,
List<org.apache.hadoop.fs.Path> paths,
String user,
boolean requireAccessAcl,
boolean requireDefaultAcl) |
(package private) static void |
checkUserAclEntry(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path path,
String userName,
boolean requireAccessAcl,
boolean requireDefaultAcl) |
(package private) static void |
deleteTable(org.apache.hadoop.hbase.TableName tableName) |
static void |
setupBeforeClass() |
private void |
snapshotAndWait(String snapShotName,
org.apache.hadoop.hbase.TableName tableName) |
static void |
tearDownAfterClass() |
void |
testCleanArchiveTableDir() |
void |
testDeleteNamespace() |
void |
testDeleteTable() |
void |
testGrantGlobal1() |
void |
testGrantGlobal2() |
void |
testGrantGlobal3() |
void |
testGrantMobTable() |
void |
testGrantNamespace1() |
void |
testGrantNamespace2() |
void |
testGrantNamespace3() |
void |
testGrantTable() |
void |
testModifyTable1() |
void |
testModifyTable2() |
void |
testRestartMaster() |
void |
testRevokeGlobal1() |
void |
testRevokeGlobal2() |
void |
testRevokeGlobal3() |
void |
testRevokeNamespace1() |
void |
testRevokeNamespace2() |
void |
testRevokeTable1() |
void |
testRevokeTable2() |
void |
testRevokeTable3() |
void |
testTruncateTable() |
public static final HBaseClassTestRule CLASS_RULE
public org.junit.rules.TestName name
private static final org.slf4j.Logger LOG
private static final String UN_GRANT_USER
private static HBaseTestingUtility TEST_UTIL
private static org.apache.hadoop.conf.Configuration conf
private static org.apache.hadoop.hbase.client.Admin admin
private static org.apache.hadoop.fs.FileSystem FS
private static org.apache.hadoop.fs.Path rootDir
private static org.apache.hadoop.hbase.security.User unGrantUser
private static org.apache.hadoop.hbase.security.access.SnapshotScannerHDFSAclHelper helper
private static org.apache.hadoop.hbase.client.Table aclTable
public TestSnapshotScannerHDFSAclController()
public static void setupBeforeClass() throws Exception
Exception
public static void tearDownAfterClass() throws Exception
Exception
private void snapshotAndWait(String snapShotName, org.apache.hadoop.hbase.TableName tableName) throws Exception
Exception
public void testGrantGlobal1() throws Exception
Exception
public void testGrantGlobal2() throws Exception
Exception
public void testGrantGlobal3() throws Exception
Exception
public void testGrantNamespace1() throws Exception
Exception
public void testGrantNamespace2() throws Exception
Exception
public void testGrantNamespace3() throws Exception
Exception
public void testGrantTable() throws Exception
Exception
public void testGrantMobTable() throws Exception
Exception
public void testRevokeGlobal1() throws Exception
Exception
public void testRevokeGlobal2() throws Exception
Exception
public void testRevokeGlobal3() throws Exception
Exception
public void testRevokeNamespace1() throws Exception
Exception
public void testRevokeNamespace2() throws Exception
Exception
public void testRevokeTable1() throws Exception
Exception
public void testRevokeTable2() throws Exception
Exception
public void testRevokeTable3() throws Exception
Exception
public void testTruncateTable() throws Exception
Exception
public void testDeleteTable() throws Exception
Exception
public void testDeleteNamespace() throws Exception
Exception
public void testCleanArchiveTableDir() throws Exception
Exception
public void testModifyTable1() throws Exception
Exception
public void testModifyTable2() throws Exception
Exception
public void testRestartMaster() throws Exception
Exception
static void checkUserAclEntry(org.apache.hadoop.fs.FileSystem fs, List<org.apache.hadoop.fs.Path> paths, String user, boolean requireAccessAcl, boolean requireDefaultAcl) throws Exception
Exception
static void checkUserAclEntry(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path, String userName, boolean requireAccessAcl, boolean requireDefaultAcl) throws IOException
IOException
static void deleteTable(org.apache.hadoop.hbase.TableName tableName)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.