public class TestVisibilityLabelsReplication extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TestVisibilityLabelsReplication.SimpleCP |
static class |
TestVisibilityLabelsReplication.TestCoprocessorForTagsAtSink |
static class |
TestVisibilityLabelsReplication.VisibilityReplicationEndPointForTest
An extn of VisibilityReplicationEndpoint to verify the tags that are replicated
|
Modifier and Type | Field and Description |
---|---|
static String |
ACCENT |
protected static org.apache.hadoop.hbase.client.Admin |
admin |
static HBaseClassTestRule |
CLASS_RULE |
protected static org.apache.hadoop.conf.Configuration |
conf |
protected static org.apache.hadoop.conf.Configuration |
conf1 |
static String |
CONFIDENTIAL |
static String |
COPYRIGHT |
protected static int[] |
expected |
protected static String[] |
expectedVisString |
static byte[] |
fam |
private static org.slf4j.Logger |
LOG |
protected static int |
NON_VIS_TAG_TYPE |
private static String |
NON_VISIBILITY |
static String |
PRIVATE |
static String |
PUBLIC |
static byte[] |
qual |
static byte[] |
row1 |
static byte[] |
row2 |
static byte[] |
row3 |
static byte[] |
row4 |
static String |
SECRET |
static org.apache.hadoop.hbase.security.User |
SUPERUSER |
protected static org.apache.hadoop.hbase.TableName |
TABLE_NAME |
protected static String |
TEMP |
org.junit.rules.TestName |
TEST_NAME |
static HBaseTestingUtility |
TEST_UTIL |
static HBaseTestingUtility |
TEST_UTIL1 |
static String |
TOPSECRET |
static String |
UNICODE_VIS_TAG |
static org.apache.hadoop.hbase.security.User |
USER1 |
static byte[] |
value |
protected static org.apache.hadoop.hbase.zookeeper.ZKWatcher |
zkw1 |
protected static org.apache.hadoop.hbase.zookeeper.ZKWatcher |
zkw2 |
Constructor and Description |
---|
TestVisibilityLabelsReplication() |
Modifier and Type | Method and Description |
---|---|
static void |
addLabels() |
protected static void |
doAssert(byte[] row,
String visTag) |
static void |
setAuths(org.apache.hadoop.conf.Configuration conf) |
void |
setup() |
protected static void |
setVisibilityLabelServiceImpl(org.apache.hadoop.conf.Configuration conf) |
void |
testVisibilityReplication() |
protected void |
verifyGet(byte[] row,
String visString,
int expected,
boolean nullExpected,
String... auths) |
(package private) static org.apache.hadoop.hbase.client.Table |
writeData(org.apache.hadoop.hbase.TableName tableName,
String... labelExps) |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
protected static final int NON_VIS_TAG_TYPE
protected static final String TEMP
protected static org.apache.hadoop.conf.Configuration conf
protected static org.apache.hadoop.conf.Configuration conf1
protected static org.apache.hadoop.hbase.TableName TABLE_NAME
protected static org.apache.hadoop.hbase.client.Admin admin
public static final String TOPSECRET
public static final String PUBLIC
public static final String PRIVATE
public static final String CONFIDENTIAL
public static final String COPYRIGHT
public static final String ACCENT
public static final String SECRET
public static final String UNICODE_VIS_TAG
public static HBaseTestingUtility TEST_UTIL
public static HBaseTestingUtility TEST_UTIL1
public static final byte[] row1
public static final byte[] row2
public static final byte[] row3
public static final byte[] row4
public static final byte[] fam
public static final byte[] qual
public static final byte[] value
protected static org.apache.hadoop.hbase.zookeeper.ZKWatcher zkw1
protected static org.apache.hadoop.hbase.zookeeper.ZKWatcher zkw2
protected static int[] expected
private static final String NON_VISIBILITY
protected static String[] expectedVisString
public final org.junit.rules.TestName TEST_NAME
public static org.apache.hadoop.hbase.security.User SUPERUSER
public static org.apache.hadoop.hbase.security.User USER1
public TestVisibilityLabelsReplication()
protected static void setVisibilityLabelServiceImpl(org.apache.hadoop.conf.Configuration conf)
public void testVisibilityReplication() throws Exception
Exception
protected static void doAssert(byte[] row, String visTag) throws Exception
Exception
protected void verifyGet(byte[] row, String visString, int expected, boolean nullExpected, String... auths) throws IOException, InterruptedException
IOException
InterruptedException
public static void setAuths(org.apache.hadoop.conf.Configuration conf) throws Exception
Exception
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.