public class TestMultipleServerPrincipalsIPC extends Object
Put here just because we need to visit some package private classes under this package.
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static String |
CLIENT_PRINCIPAL |
private org.apache.hadoop.conf.Configuration |
clientConf |
private org.apache.hadoop.security.UserGroupInformation |
clientUGI |
private static String |
HOST |
private static org.apache.hadoop.minikdc.MiniKdc |
KDC |
private static File |
KEYTAB_FILE |
private org.apache.hadoop.hbase.ipc.RpcClient |
rpcClient |
Class<? extends org.apache.hadoop.hbase.ipc.RpcClient> |
rpcClientImpl |
private org.apache.hadoop.hbase.ipc.RpcServer |
rpcServer |
Class<? extends org.apache.hadoop.hbase.ipc.RpcServer> |
rpcServerImpl |
private static String |
SERVER_PRINCIPAL |
private static String |
SERVER_PRINCIPAL2 |
private org.apache.hadoop.conf.Configuration |
serverConf |
private org.apache.hadoop.security.UserGroupInformation |
serverUGI |
private static HBaseTestingUtil |
TEST_UTIL |
Constructor and Description |
---|
TestMultipleServerPrincipalsIPC() |
Modifier and Type | Method and Description |
---|---|
private String |
echo(String msg) |
private void |
loginAndStartRpcServer(String principal,
int port) |
static List<Object[]> |
params() |
private static void |
setSecuredConfiguration(org.apache.hadoop.conf.Configuration conf) |
void |
setUp() |
static void |
setUpBeforeClass() |
void |
tearDown() |
static void |
tearDownAfterClass() |
void |
testEcho() |
void |
testMaliciousServer() |
void |
testRememberLastSucceededServerPrincipal() |
public static final HBaseClassTestRule CLASS_RULE
private static final HBaseTestingUtil TEST_UTIL
private static final File KEYTAB_FILE
private static org.apache.hadoop.minikdc.MiniKdc KDC
private static String SERVER_PRINCIPAL
private static String SERVER_PRINCIPAL2
private static String CLIENT_PRINCIPAL
public Class<? extends org.apache.hadoop.hbase.ipc.RpcServer> rpcServerImpl
public Class<? extends org.apache.hadoop.hbase.ipc.RpcClient> rpcClientImpl
private org.apache.hadoop.conf.Configuration clientConf
private org.apache.hadoop.conf.Configuration serverConf
private org.apache.hadoop.security.UserGroupInformation clientUGI
private org.apache.hadoop.security.UserGroupInformation serverUGI
private org.apache.hadoop.hbase.ipc.RpcServer rpcServer
private org.apache.hadoop.hbase.ipc.RpcClient rpcClient
public TestMultipleServerPrincipalsIPC()
public static void setUpBeforeClass() throws Exception
Exception
public static void tearDownAfterClass()
private static void setSecuredConfiguration(org.apache.hadoop.conf.Configuration conf)
private void loginAndStartRpcServer(String principal, int port) throws Exception
Exception
public void tearDown() throws IOException
IOException
public void testMaliciousServer() throws Exception
Exception
public void testRememberLastSucceededServerPrincipal() throws Exception
Exception
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.