public class TestTablePermissions extends Object
_acl_
table.Modifier and Type | Field and Description |
---|---|
private static org.apache.hadoop.hbase.Abortable |
ABORTABLE |
static HBaseClassTestRule |
CLASS_RULE |
private static org.slf4j.Logger |
LOG |
private static byte[] |
TEST_FAMILY |
private static String |
TEST_NAMESPACE |
private static String |
TEST_NAMESPACE2 |
private static byte[] |
TEST_QUALIFIER |
private static org.apache.hadoop.hbase.TableName |
TEST_TABLE |
private static org.apache.hadoop.hbase.TableName |
TEST_TABLE2 |
private static HBaseTestingUtility |
UTIL |
private static org.apache.hadoop.hbase.zookeeper.ZKWatcher |
ZKW |
Constructor and Description |
---|
TestTablePermissions() |
Modifier and Type | Method and Description |
---|---|
private 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 |
afterClass() |
static void |
beforeClass() |
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> |
createPermissions() |
void |
tearDown() |
void |
testAuthManager() |
void |
testBasicWrite() |
void |
testEquals() |
void |
testGlobalPermission() |
void |
testPersistence() |
void |
testSerialization() |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final HBaseTestingUtility UTIL
private static org.apache.hadoop.hbase.zookeeper.ZKWatcher ZKW
private static final org.apache.hadoop.hbase.Abortable ABORTABLE
private static String TEST_NAMESPACE
private static String TEST_NAMESPACE2
private static org.apache.hadoop.hbase.TableName TEST_TABLE
private static org.apache.hadoop.hbase.TableName TEST_TABLE2
private static byte[] TEST_FAMILY
private static byte[] TEST_QUALIFIER
public TestTablePermissions()
public static void beforeClass() throws Exception
Exception
public static void afterClass() throws Exception
Exception
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
IOException
public void testBasicWrite() throws Exception
Exception
public void testPersistence() throws Exception
Exception
public void testSerialization() throws Exception
Exception
private org.apache.hbase.thirdparty.com.google.common.collect.ListMultimap<String,org.apache.hadoop.hbase.security.access.UserPermission> createPermissions()
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)
public void testEquals() throws Exception
Exception
public void testGlobalPermission() throws Exception
Exception
public void testAuthManager() throws Exception
Exception
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.