Class TestTablePermissions
java.lang.Object
org.apache.hadoop.hbase.security.access.TestTablePermissions
Test the reading and writing of access permissions on
_acl_
table.-
Field Summary
Modifier and TypeFieldDescriptionprivate static final org.apache.hadoop.hbase.Abortable
static final HBaseClassTestRule
private static final org.slf4j.Logger
private static byte[]
private static String
private static String
private static byte[]
private static org.apache.hadoop.hbase.TableName
private static org.apache.hadoop.hbase.TableName
private static final HBaseTestingUtility
private static org.apache.hadoop.hbase.zookeeper.ZKWatcher
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
addUserPermission
(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.security.access.UserPermission userPerm, org.apache.hadoop.hbase.client.Table t) The PermissionStorage.addUserPermission may throw exception before closing the table.static void
static void
void
checkMultimapEqual
(org.apache.hbase.thirdparty.com.google.common.collect.ListMultimap<String, org.apache.hadoop.hbase.security.access.UserPermission> first, org.apache.hbase.thirdparty.com.google.common.collect.ListMultimap<String, org.apache.hadoop.hbase.security.access.UserPermission> second) private org.apache.hbase.thirdparty.com.google.common.collect.ListMultimap<String,
org.apache.hadoop.hbase.security.access.UserPermission> void
tearDown()
void
void
void
void
void
void
-
Field Details
-
CLASS_RULE
-
LOG
-
UTIL
-
ZKW
-
ABORTABLE
-
TEST_NAMESPACE
-
TEST_NAMESPACE2
-
TEST_TABLE
-
TEST_TABLE2
-
TEST_FAMILY
-
TEST_QUALIFIER
-
-
Constructor Details
-
TestTablePermissions
public TestTablePermissions()
-
-
Method Details
-
beforeClass
- Throws:
Exception
-
afterClass
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
addUserPermission
private void addUserPermission(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.security.access.UserPermission userPerm, org.apache.hadoop.hbase.client.Table t) throws IOException The PermissionStorage.addUserPermission may throw exception before closing the table.- Throws:
IOException
-
testBasicWrite
- Throws:
Exception
-
testPersistence
- Throws:
Exception
-
testSerialization
- Throws:
Exception
-
createPermissions
private org.apache.hbase.thirdparty.com.google.common.collect.ListMultimap<String,org.apache.hadoop.hbase.security.access.UserPermission> createPermissions() -
checkMultimapEqual
public void checkMultimapEqual(org.apache.hbase.thirdparty.com.google.common.collect.ListMultimap<String, org.apache.hadoop.hbase.security.access.UserPermission> first, org.apache.hbase.thirdparty.com.google.common.collect.ListMultimap<String, org.apache.hadoop.hbase.security.access.UserPermission> second) -
testEquals
- Throws:
Exception
-
testGlobalPermission
- Throws:
Exception
-
testAuthManager
- Throws:
Exception
-