public class TestThriftHBaseServiceHandlerWithLabels extends Object
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static org.apache.hadoop.conf.Configuration |
conf |
private static String |
CONFIDENTIAL |
private static org.apache.hadoop.hbase.HColumnDescriptor[] |
families |
private static byte[] |
familyAname |
private static byte[] |
familyBname |
private static org.slf4j.Logger |
LOG |
private static String |
PRIVATE |
private static String |
PUBLIC |
private static byte[] |
qualifierAname |
private static byte[] |
qualifierBname |
private static String |
SECRET |
private static org.apache.hadoop.hbase.security.User |
SUPERUSER |
private static byte[] |
tableAname |
private static String |
TOPSECRET |
private static HBaseTestingUtility |
UTIL |
private static byte[] |
valueAname |
private static byte[] |
valueBname |
Constructor and Description |
---|
TestThriftHBaseServiceHandlerWithLabels() |
Modifier and Type | Method and Description |
---|---|
static void |
afterClass() |
void |
assertTColumnValuesEqual(List<org.apache.hadoop.hbase.thrift2.generated.TColumnValue> columnValuesA,
List<org.apache.hadoop.hbase.thrift2.generated.TColumnValue> columnValuesB) |
static void |
beforeClass() |
private org.apache.hadoop.hbase.thrift2.ThriftHBaseServiceHandler |
createHandler() |
private static void |
createLabels() |
private String |
pad(int n,
byte pad)
Padding numbers to make comparison of sort order easier in a for loop
|
private static void |
setAuths() |
void |
setup() |
void |
testAppend() |
void |
testGetScannerResultsWithAuthorizations() |
void |
testGetsWithLabels() |
void |
testIncrementWithTags() |
void |
testIncrementWithTagsWithNotMatchLabels() |
void |
testScanWithVisibilityLabels() |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final HBaseTestingUtility UTIL
private static byte[] tableAname
private static byte[] familyAname
private static byte[] familyBname
private static byte[] qualifierAname
private static byte[] qualifierBname
private static byte[] valueAname
private static byte[] valueBname
private static org.apache.hadoop.hbase.HColumnDescriptor[] families
private static final String TOPSECRET
private static final String PUBLIC
private static final String PRIVATE
private static final String CONFIDENTIAL
private static final String SECRET
private static org.apache.hadoop.hbase.security.User SUPERUSER
private static org.apache.hadoop.conf.Configuration conf
public TestThriftHBaseServiceHandlerWithLabels()
public void assertTColumnValuesEqual(List<org.apache.hadoop.hbase.thrift2.generated.TColumnValue> columnValuesA, List<org.apache.hadoop.hbase.thrift2.generated.TColumnValue> columnValuesB)
public static void beforeClass() throws Exception
Exception
private static void createLabels() throws IOException, InterruptedException
IOException
InterruptedException
private static void setAuths() throws IOException
IOException
public static void afterClass() throws Exception
Exception
private org.apache.hadoop.hbase.thrift2.ThriftHBaseServiceHandler createHandler() throws IOException
IOException
public void testScanWithVisibilityLabels() throws Exception
Exception
public void testGetScannerResultsWithAuthorizations() throws Exception
Exception
public void testGetsWithLabels() throws Exception
Exception
public void testIncrementWithTags() throws Exception
Exception
public void testIncrementWithTagsWithNotMatchLabels() throws Exception
Exception
public void testAppend() throws Exception
Exception
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.