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
Exceptionpublic static void tearDownAfterClass() throws Exception
Exceptionprivate void snapshotAndWait(String snapShotName, org.apache.hadoop.hbase.TableName tableName) throws Exception
Exceptionpublic void testGrantGlobal1() throws Exception
Exceptionpublic void testGrantGlobal2() throws Exception
Exceptionpublic void testGrantGlobal3() throws Exception
Exceptionpublic void testGrantNamespace1() throws Exception
Exceptionpublic void testGrantNamespace2() throws Exception
Exceptionpublic void testGrantNamespace3() throws Exception
Exceptionpublic void testGrantTable() throws Exception
Exceptionpublic void testGrantMobTable() throws Exception
Exceptionpublic void testRevokeGlobal1() throws Exception
Exceptionpublic void testRevokeGlobal2() throws Exception
Exceptionpublic void testRevokeGlobal3() throws Exception
Exceptionpublic void testRevokeNamespace1() throws Exception
Exceptionpublic void testRevokeNamespace2() throws Exception
Exceptionpublic void testRevokeTable1() throws Exception
Exceptionpublic void testRevokeTable2() throws Exception
Exceptionpublic void testRevokeTable3() throws Exception
Exceptionpublic void testTruncateTable() throws Exception
Exceptionpublic void testDeleteTable() throws Exception
Exceptionpublic void testDeleteNamespace() throws Exception
Exceptionpublic void testCleanArchiveTableDir() throws Exception
Exceptionpublic void testModifyTable1() throws Exception
Exceptionpublic void testModifyTable2() throws Exception
Exceptionpublic void testRestartMaster() throws Exception
Exceptionstatic void checkUserAclEntry(org.apache.hadoop.fs.FileSystem fs, List<org.apache.hadoop.fs.Path> paths, String user, boolean requireAccessAcl, boolean requireDefaultAcl) throws Exception
Exceptionstatic void checkUserAclEntry(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path, String userName, boolean requireAccessAcl, boolean requireDefaultAcl) throws IOException
IOExceptionstatic void deleteTable(org.apache.hadoop.hbase.TableName tableName)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.