public class TestShadeSaslAuthenticationProvider extends Object
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static org.apache.hadoop.hbase.LocalHBaseCluster |
CLUSTER |
(package private) String |
clusterId |
private static org.apache.hadoop.conf.Configuration |
CONF |
private static File |
KEYTAB_FILE |
org.junit.rules.TestName |
name |
(package private) org.apache.hadoop.hbase.TableName |
tableName |
private static org.apache.hadoop.fs.Path |
USER_DATABASE_FILE |
private static char[] |
USER1_PASSWORD |
private static HBaseTestingUtility |
UTIL |
Constructor and Description |
---|
TestShadeSaslAuthenticationProvider() |
Modifier and Type | Method and Description |
---|---|
(package private) static org.apache.hadoop.hbase.LocalHBaseCluster |
createCluster(HBaseTestingUtility util,
File keytabFile,
org.apache.hadoop.minikdc.MiniKdc kdc,
Map<String,char[]> userDatabase) |
void |
createTable() |
(package private) static void |
createUserDBFile(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path p,
Map<String,char[]> userDatabase) |
static void |
setupCluster() |
static void |
teardownCluster() |
void |
testNegativeAuthentication() |
void |
testPositiveAuthentication() |
public static final HBaseClassTestRule CLASS_RULE
private static final char[] USER1_PASSWORD
private static final HBaseTestingUtility UTIL
private static final org.apache.hadoop.conf.Configuration CONF
private static org.apache.hadoop.hbase.LocalHBaseCluster CLUSTER
private static File KEYTAB_FILE
private static org.apache.hadoop.fs.Path USER_DATABASE_FILE
public org.junit.rules.TestName name
org.apache.hadoop.hbase.TableName tableName
public TestShadeSaslAuthenticationProvider()
static org.apache.hadoop.hbase.LocalHBaseCluster createCluster(HBaseTestingUtility util, File keytabFile, org.apache.hadoop.minikdc.MiniKdc kdc, Map<String,char[]> userDatabase) throws Exception
Exception
static void createUserDBFile(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path p, Map<String,char[]> userDatabase) throws IOException
IOException
public static void setupCluster() throws Exception
Exception
public static void teardownCluster() throws Exception
Exception
public void createTable() throws Exception
Exception
public void testPositiveAuthentication() throws Exception
Exception
public void testNegativeAuthentication() throws Exception
Exception
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.