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
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate static Stringprivate org.apache.hadoop.conf.Configurationprivate org.apache.hadoop.security.UserGroupInformationprivate static Stringprivate static org.apache.hadoop.minikdc.MiniKdcprivate static final Fileprivate org.apache.hadoop.hbase.ipc.RpcClientClass<? extends org.apache.hadoop.hbase.ipc.RpcClient>private org.apache.hadoop.hbase.ipc.RpcServerClass<? extends org.apache.hadoop.hbase.ipc.RpcServer>private static Stringprivate static Stringprivate org.apache.hadoop.conf.Configurationprivate org.apache.hadoop.security.UserGroupInformationprivate static final HBaseTestingUtil -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate Stringprivate voidloginAndStartRpcServer(String principal, int port) params()private static voidsetSecuredConfiguration(org.apache.hadoop.conf.Configuration conf) voidsetUp()static voidvoidtearDown()static voidvoidtestEcho()voidvoid
-
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
-