public class TestSecureExport extends Object
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static String |
CONFIDENTIAL |
private static byte[] |
FAMILYA |
private static String |
FAMILYA_STRING |
private static byte[] |
FAMILYB |
private static String |
FAMILYB_STRING |
private static String |
HTTP_PRINCIPAL |
private static org.apache.hadoop.minikdc.MiniKdc |
KDC |
private static File |
KEYTAB_FILE |
private static String |
LOCALHOST |
private static org.slf4j.Logger |
LOG |
org.junit.rules.TestName |
name |
private static long |
NOW |
private static String |
PRIVATE |
private static byte[] |
QUAL |
private static byte[] |
ROW1 |
private static byte[] |
ROW2 |
private static byte[] |
ROW3 |
private static String |
SECRET |
private static String |
SERVER_PRINCIPAL |
private static String |
TOPSECRET |
private static String |
USER_ADMIN |
private static String |
USER_NONE |
private static String |
USER_OWNER |
private static String |
USER_RO |
private static String |
USER_RX |
private static String |
USER_XO |
private static String |
USERNAME |
private static HBaseTestingUtility |
UTIL |
Constructor and Description |
---|
TestSecureExport() |
Modifier and Type | Method and Description |
---|---|
private static void |
addLabels(org.apache.hadoop.conf.Configuration conf,
List<String> users,
List<String> labels) |
static void |
afterClass() |
void |
announce() |
static void |
beforeClass()
Sets the security firstly for getting the correct default realm.
|
void |
cleanup() |
private static void |
clearOutput(org.apache.hadoop.fs.Path path) |
private static String |
getPrinciple(String user) |
private static org.apache.hadoop.hbase.security.User |
getUserByLogin(String user) |
private static void |
setUpClusterKdc() |
private static void |
setUpKdcServer() |
void |
testAccessCase()
Test the ExportEndpoint's access levels.
|
void |
testVisibilityLabels() |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final HBaseTestingUtility UTIL
private static org.apache.hadoop.minikdc.MiniKdc KDC
private static final File KEYTAB_FILE
private static String SERVER_PRINCIPAL
private static String HTTP_PRINCIPAL
private static final String FAMILYA_STRING
private static final String FAMILYB_STRING
private static final byte[] FAMILYA
private static final byte[] FAMILYB
private static final byte[] ROW1
private static final byte[] ROW2
private static final byte[] ROW3
private static final byte[] QUAL
private static final String LOCALHOST
private static final long NOW
private static final String USER_ADMIN
private static final String USER_OWNER
private static final String USER_RX
private static final String USER_XO
private static final String USER_RO
private static final String USER_NONE
private static final String PRIVATE
private static final String CONFIDENTIAL
private static final String SECRET
private static final String TOPSECRET
public final org.junit.rules.TestName name
public TestSecureExport()
private static void setUpKdcServer() throws Exception
Exception
private static org.apache.hadoop.hbase.security.User getUserByLogin(String user) throws IOException
IOException
private static String getPrinciple(String user)
private static void setUpClusterKdc() throws Exception
Exception
private static void addLabels(org.apache.hadoop.conf.Configuration conf, List<String> users, List<String> labels) throws Exception
Exception
public void announce()
public void cleanup() throws IOException
IOException
private static void clearOutput(org.apache.hadoop.fs.Path path) throws IOException
IOException
public static void beforeClass() throws Exception
Exception
public static void afterClass() throws Exception
Exception
public void testAccessCase() throws Throwable
Export
test is ignored
since the access exceptions cannot be collected from the mappers.Throwable
public void testVisibilityLabels() throws IOException, Throwable
IOException
Throwable
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.