Class TestVisibilityLabels
java.lang.Object
org.apache.hadoop.hbase.security.visibility.TestVisibilityLabels
- Direct Known Subclasses:
TestVisibilityLabelsWithCustomVisLabService
,TestVisibilityLabelsWithDefaultVisLabelService
Base test class for visibility labels basic features
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static org.apache.hadoop.conf.Configuration
static final String
static final String
static final byte[]
private boolean
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
final org.junit.rules.TestName
static final HBaseTestingUtil
static final String
static final String
static final String
static final String
static org.apache.hadoop.hbase.security.User
static final byte[]
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
(package private) static org.apache.hadoop.hbase.client.Table
createTableAndWriteDataWithLabels
(org.apache.hadoop.hbase.TableName tableName, String... labelExps) extractAuths
(String user, List<org.apache.hadoop.hbase.client.Result> results) void
tearDown()
static void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
protected void
waitForLabelsRegionAvailability
(org.apache.hadoop.hbase.regionserver.HRegionServer regionServer)
-
Field Details
-
TOPSECRET
- See Also:
-
PUBLIC
- See Also:
-
PRIVATE
- See Also:
-
CONFIDENTIAL
- See Also:
-
SECRET
- See Also:
-
COPYRIGHT
- See Also:
-
ACCENT
- See Also:
-
UNICODE_VIS_TAG
- See Also:
-
UC1
- See Also:
-
UC2
- See Also:
-
TEST_UTIL
-
row1
-
row2
-
row3
-
row4
-
fam
-
qual
-
value
-
conf
-
killedRS
-
TEST_NAME
-
SUPERUSER
-
USER1
-
-
Constructor Details
-
TestVisibilityLabels
public TestVisibilityLabels()
-
-
Method Details
-
tearDownAfterClass
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
testSecurityCapabilities
- Throws:
Exception
-
testSimpleVisibilityLabels
- Throws:
Exception
-
testSimpleVisibilityLabelsWithUniCodeCharacters
- Throws:
Exception
-
testAuthorizationsWithSpecialUnicodeCharacters
- Throws:
Exception
-
testVisibilityLabelsWithComplexLabels
- Throws:
Exception
-
testVisibilityLabelsThatDoesNotPassTheCriteria
- Throws:
Exception
-
testVisibilityLabelsInPutsThatDoesNotMatchAnyDefinedLabels
- Throws:
Exception
-
testVisibilityLabelsInScanThatDoesNotMatchAnyDefinedLabels
- Throws:
Exception
-
testVisibilityLabelsWithGet
- Throws:
Exception
-
testVisibilityLabelsOnKillingOfRSContainingLabelsTable
- Throws:
Exception
-
testVisibilityLabelsOnRSRestart
- Throws:
Exception
-
waitForLabelsRegionAvailability
protected void waitForLabelsRegionAvailability(org.apache.hadoop.hbase.regionserver.HRegionServer regionServer) -
testVisibilityLabelsInGetThatDoesNotMatchAnyDefinedLabels
- Throws:
Exception
-
testSetAndGetUserAuths
- Throws:
Throwable
-
extractAuths
protected List<String> extractAuths(String user, List<org.apache.hadoop.hbase.client.Result> results) -
testClearUserAuths
- Throws:
Throwable
-
testLabelsWithCheckAndPut
- Throws:
Throwable
-
testLabelsWithIncrement
- Throws:
Throwable
-
testLabelsWithAppend
- Throws:
Throwable
-
testUserShouldNotDoDDLOpOnLabelsTable
- Throws:
Exception
-
testMultipleVersions
- Throws:
Exception
-
testMutateRow
- Throws:
Exception
-
testFlushedFileWithVisibilityTags
- Throws:
Exception
-
createTableAndWriteDataWithLabels
static org.apache.hadoop.hbase.client.Table createTableAndWriteDataWithLabels(org.apache.hadoop.hbase.TableName tableName, String... labelExps) throws Exception - Throws:
Exception
-
addLabels
- Throws:
Exception
-