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 SummaryFieldsModifier and TypeFieldDescriptionstatic final Stringstatic org.apache.hadoop.conf.Configurationstatic final Stringstatic final Stringstatic final byte[]private booleanstatic 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.Userfinal org.junit.rules.TestNamestatic final HBaseTestingUtilstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic org.apache.hadoop.hbase.security.Userstatic final byte[]
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic void(package private) static org.apache.hadoop.hbase.client.TablecreateTableAndWriteDataWithLabels(org.apache.hadoop.hbase.TableName tableName, String... labelExps) extractAuths(String user, List<org.apache.hadoop.hbase.client.Result> results) voidtearDown()static voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidprotected voidwaitForLabelsRegionAvailability(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- 
TestVisibilityLabelspublic 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
 
- 
waitForLabelsRegionAvailabilityprotected void waitForLabelsRegionAvailability(org.apache.hadoop.hbase.regionserver.HRegionServer regionServer) 
- 
testVisibilityLabelsInGetThatDoesNotMatchAnyDefinedLabels- Throws:
- Exception
 
- 
testSetAndGetUserAuths- Throws:
- Throwable
 
- 
extractAuthsprotected 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
 
- 
createTableAndWriteDataWithLabelsstatic org.apache.hadoop.hbase.client.Table createTableAndWriteDataWithLabels(org.apache.hadoop.hbase.TableName tableName, String... labelExps) throws Exception - Throws:
- Exception
 
- 
addLabels- Throws:
- Exception
 
 
-