Class TestVisibilityLabelsReplication
java.lang.Object
org.apache.hadoop.hbase.security.visibility.TestVisibilityLabelsReplication
- Direct Known Subclasses:
TestVisibilityLabelReplicationWithExpAsString
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
An extn of VisibilityReplicationEndpoint to verify the tags that are replicated -
Field Summary
Modifier and TypeFieldDescriptionstatic final String
protected static org.apache.hadoop.hbase.client.Admin
static final HBaseClassTestRule
protected static org.apache.hadoop.conf.Configuration
protected static org.apache.hadoop.conf.Configuration
static final String
static final String
protected static int[]
protected static String[]
static final byte[]
private static final org.slf4j.Logger
protected static final int
private static final String
static final String
static final String
static final byte[]
static final byte[]
static final byte[]
static final byte[]
static final byte[]
static final String
static org.apache.hadoop.hbase.security.User
protected static org.apache.hadoop.hbase.TableName
protected static final String
final org.junit.rules.TestName
static HBaseTestingUtility
static HBaseTestingUtility
static final String
static final String
static org.apache.hadoop.hbase.security.User
static final byte[]
protected static org.apache.hadoop.hbase.zookeeper.ZKWatcher
protected static org.apache.hadoop.hbase.zookeeper.ZKWatcher
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
protected static void
static void
setAuths
(org.apache.hadoop.conf.Configuration conf) void
setup()
protected static void
setVisibilityLabelServiceImpl
(org.apache.hadoop.conf.Configuration conf) void
protected void
(package private) static org.apache.hadoop.hbase.client.Table
-
Field Details
-
CLASS_RULE
-
LOG
-
NON_VIS_TAG_TYPE
- See Also:
-
TEMP
- See Also:
-
conf
-
conf1
-
TABLE_NAME
-
admin
-
TOPSECRET
- See Also:
-
PUBLIC
- See Also:
-
PRIVATE
- See Also:
-
CONFIDENTIAL
- See Also:
-
COPYRIGHT
- See Also:
-
ACCENT
- See Also:
-
SECRET
- See Also:
-
UNICODE_VIS_TAG
- See Also:
-
TEST_UTIL
-
TEST_UTIL1
-
row1
-
row2
-
row3
-
row4
-
fam
-
qual
-
value
-
zkw1
-
zkw2
-
expected
-
NON_VISIBILITY
- See Also:
-
expectedVisString
-
TEST_NAME
-
SUPERUSER
-
USER1
-
-
Constructor Details
-
TestVisibilityLabelsReplication
public TestVisibilityLabelsReplication()
-
-
Method Details
-
setup
- Throws:
Exception
-
setVisibilityLabelServiceImpl
-
testVisibilityReplication
- Throws:
Exception
-
doAssert
- Throws:
Exception
-
verifyGet
protected void verifyGet(byte[] row, String visString, int expected, boolean nullExpected, String... auths) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
addLabels
- Throws:
Exception
-
setAuths
- Throws:
Exception
-
writeData
static org.apache.hadoop.hbase.client.Table writeData(org.apache.hadoop.hbase.TableName tableName, String... labelExps) throws Exception - Throws:
Exception
-