Package org.apache.hadoop.hbase.ipc
Class TestMultipleServerPrincipalsIPC
java.lang.Object
org.apache.hadoop.hbase.ipc.TestMultipleServerPrincipalsIPC
Tests for HBASE-28321, where we have multiple server principals candidates for a rpc service.
Put here just because we need to visit some package private classes under this package.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static String
private org.apache.hadoop.conf.Configuration
private org.apache.hadoop.security.UserGroupInformation
private static String
private static org.apache.hadoop.minikdc.MiniKdc
private static final File
private org.apache.hadoop.hbase.ipc.RpcClient
Class<? extends org.apache.hadoop.hbase.ipc.RpcClient>
private org.apache.hadoop.hbase.ipc.RpcServer
Class<? extends org.apache.hadoop.hbase.ipc.RpcServer>
private static String
private static String
private org.apache.hadoop.conf.Configuration
private org.apache.hadoop.security.UserGroupInformation
private static final HBaseTestingUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate String
private void
loginAndStartRpcServer
(String principal, int port) params()
private static void
setSecuredConfiguration
(org.apache.hadoop.conf.Configuration conf) void
setUp()
static void
void
tearDown()
static void
void
testEcho()
void
void
-
Field Details
-
CLASS_RULE
-
TEST_UTIL
-
KEYTAB_FILE
-
KDC
-
HOST
-
SERVER_PRINCIPAL
-
SERVER_PRINCIPAL2
-
CLIENT_PRINCIPAL
-
rpcServerImpl
-
rpcClientImpl
-
clientConf
-
serverConf
-
clientUGI
-
serverUGI
-
rpcServer
-
rpcClient
-
-
Constructor Details
-
TestMultipleServerPrincipalsIPC
public TestMultipleServerPrincipalsIPC()
-
-
Method Details
-
params
-
setUpBeforeClass
- Throws:
Exception
-
tearDownAfterClass
-
setSecuredConfiguration
-
loginAndStartRpcServer
- Throws:
Exception
-
setUp
- Throws:
Exception
-
tearDown
- Throws:
IOException
-
echo
- Throws:
Exception
-
testEcho
- Throws:
Exception
-
testMaliciousServer
- Throws:
Exception
-
testRememberLastSucceededServerPrincipal
- Throws:
Exception
-