Package org.apache.hadoop.hbase.ipc
Class TestMultipleServerPrincipalsIPC
java.lang.Object
org.apache.hadoop.hbase.ipc.TestMultipleServerPrincipalsIPC
@Tag("org.apache.hadoop.hbase.testclassification.SecurityTests") @Tag("org.apache.hadoop.hbase.testclassification.MediumTests")
public class TestMultipleServerPrincipalsIPC
extends Object
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 TypeFieldDescriptionprivate 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.RpcClientprivate final Class<? extends org.apache.hadoop.hbase.ipc.RpcClient>private org.apache.hadoop.hbase.ipc.RpcServerprivate final Class<? 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
ConstructorsConstructorDescriptionTestMultipleServerPrincipalsIPC(Class<? extends org.apache.hadoop.hbase.ipc.RpcServer> rpcServerImpl, Class<? extends org.apache.hadoop.hbase.ipc.RpcClient> rpcClientImpl) -
Method Summary
Modifier and TypeMethodDescriptionprivate Stringprivate voidloginAndStartRpcServer(String principal, int port) static Stream<org.junit.jupiter.params.provider.Arguments>private static voidsetSecuredConfiguration(org.apache.hadoop.conf.Configuration conf) voidsetUp()static voidvoidtearDown()static voidvoidtestEcho()voidvoid
-
Field Details
-
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(Class<? extends org.apache.hadoop.hbase.ipc.RpcServer> rpcServerImpl, Class<? extends org.apache.hadoop.hbase.ipc.RpcClient> rpcClientImpl)
-
-
Method Details
-
parameters
-
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
-