public abstract class TestVisibilityLabels extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ACCENT |
static org.apache.hadoop.conf.Configuration |
conf |
static String |
CONFIDENTIAL |
static String |
COPYRIGHT |
static byte[] |
fam |
private boolean |
killedRS |
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 |
org.junit.rules.TestName |
TEST_NAME |
static HBaseTestingUtility |
TEST_UTIL |
static String |
TOPSECRET |
static String |
UC1 |
static String |
UC2 |
static String |
UNICODE_VIS_TAG |
static org.apache.hadoop.hbase.security.User |
USER1 |
static byte[] |
value |
| Constructor and Description |
|---|
TestVisibilityLabels() |
public static final String TOPSECRET
public static final String PUBLIC
public static final String PRIVATE
public static final String CONFIDENTIAL
public static final String SECRET
public static final String COPYRIGHT
public static final String ACCENT
public static final String UNICODE_VIS_TAG
public static final String UC1
public static final String UC2
public static final HBaseTestingUtility TEST_UTIL
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
public static org.apache.hadoop.conf.Configuration conf
private volatile boolean killedRS
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 TestVisibilityLabels()
public static void tearDownAfterClass() throws Exception
Exceptionpublic void testSecurityCapabilities() throws Exception
Exceptionpublic void testSimpleVisibilityLabels() throws Exception
Exceptionpublic void testSimpleVisibilityLabelsWithUniCodeCharacters() throws Exception
Exceptionpublic void testAuthorizationsWithSpecialUnicodeCharacters() throws Exception
Exceptionpublic void testVisibilityLabelsWithComplexLabels() throws Exception
Exceptionpublic void testVisibilityLabelsThatDoesNotPassTheCriteria() throws Exception
Exceptionpublic void testVisibilityLabelsInPutsThatDoesNotMatchAnyDefinedLabels() throws Exception
Exceptionpublic void testVisibilityLabelsInScanThatDoesNotMatchAnyDefinedLabels() throws Exception
Exceptionpublic void testVisibilityLabelsWithGet() throws Exception
Exceptionpublic void testVisibilityLabelsOnKillingOfRSContainingLabelsTable() throws Exception
Exceptionpublic void testVisibilityLabelsOnRSRestart() throws Exception
Exceptionprotected void waitForLabelsRegionAvailability(org.apache.hadoop.hbase.regionserver.HRegionServer regionServer)
public void testVisibilityLabelsInGetThatDoesNotMatchAnyDefinedLabels() throws Exception
Exceptionpublic void testSetAndGetUserAuths() throws Throwable
Throwableprotected List<String> extractAuths(String user, List<org.apache.hadoop.hbase.client.Result> results)
public void testClearUserAuths() throws Throwable
Throwablepublic void testLabelsWithCheckAndPut() throws Throwable
Throwablepublic void testLabelsWithIncrement() throws Throwable
Throwablepublic void testLabelsWithAppend() throws Throwable
Throwablepublic void testUserShouldNotDoDDLOpOnLabelsTable() throws Exception
Exceptionpublic void testMultipleVersions() throws Exception
Exceptionpublic void testMutateRow() throws Exception
Exceptionpublic void testFlushedFileWithVisibilityTags() throws Exception
Exceptionstatic org.apache.hadoop.hbase.client.Table createTableAndWriteDataWithLabels(org.apache.hadoop.hbase.TableName tableName, String... labelExps) throws Exception
ExceptionCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.