Class TestVisibilityLabelsReplication
java.lang.Object
org.apache.hadoop.hbase.security.visibility.TestVisibilityLabelsReplication
- Direct Known Subclasses:
TestVisibilityLabelReplicationWithExpAsString
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classAn extn of VisibilityReplicationEndpoint to verify the tags that are replicated -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected static org.apache.hadoop.hbase.client.Adminstatic final HBaseClassTestRuleprotected static org.apache.hadoop.conf.Configurationprotected static org.apache.hadoop.conf.Configurationstatic final Stringstatic final Stringprotected static int[]protected static String[]static final byte[]private static final org.slf4j.Loggerprotected static final intprivate static final Stringstatic final Stringstatic final Stringstatic final byte[]static final byte[]static final byte[]static final byte[]static final byte[]static final Stringstatic org.apache.hadoop.hbase.security.Userprotected static org.apache.hadoop.hbase.TableNameprotected static final Stringfinal org.junit.rules.TestNamestatic HBaseTestingUtilitystatic HBaseTestingUtilitystatic final Stringstatic final Stringstatic org.apache.hadoop.hbase.security.Userstatic final byte[]protected static org.apache.hadoop.hbase.zookeeper.ZKWatcherprotected static org.apache.hadoop.hbase.zookeeper.ZKWatcher -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidprotected static voidstatic voidsetAuths(org.apache.hadoop.conf.Configuration conf) voidsetup()protected static voidsetVisibilityLabelServiceImpl(org.apache.hadoop.conf.Configuration conf) voidprotected 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:
IOExceptionInterruptedException
-
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
-