Package org.apache.hadoop.hbase.ipc
Class TestNettyTlsIPC
java.lang.Object
org.apache.hadoop.hbase.ipc.AbstractTestIPC
org.apache.hadoop.hbase.ipc.TestNettyTlsIPC
@Tag("org.apache.hadoop.hbase.testclassification.RPCTests") @Tag("org.apache.hadoop.hbase.testclassification.MediumTests")
public class TestNettyTlsIPC
extends AbstractTestIPC
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate X509KeyTypeprivate X509KeyTypeprivate booleanprivate static org.apache.hadoop.hbase.util.NettyEventLoopGroupConfigprivate char[]private static X509TestContextProviderprivate static final HBaseCommonTestingUtilprivate X509TestContextFields inherited from class org.apache.hadoop.hbase.ipc.AbstractTestIPC
CONF -
Constructor Summary
ConstructorsConstructorDescriptionTestNettyTlsIPC(Class<? extends org.apache.hadoop.hbase.ipc.RpcServer> rpcServerImpl, X509KeyType caKeyType, X509KeyType certKeyType, char[] keyPassword, boolean acceptPlainText, boolean clientTlsEnabled) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.hadoop.hbase.ipc.AbstractRpcClient<?>createBadAuthRpcClient(org.apache.hadoop.conf.Configuration conf) protected org.apache.hadoop.hbase.ipc.AbstractRpcClient<?>createRpcClient(org.apache.hadoop.conf.Configuration conf) protected org.apache.hadoop.hbase.ipc.AbstractRpcClient<?>createRpcClientNoCodec(org.apache.hadoop.conf.Configuration conf) protected org.apache.hadoop.hbase.ipc.AbstractRpcClient<?>createRpcClientRTEDuringConnectionSetup(org.apache.hadoop.conf.Configuration conf) protected org.apache.hadoop.hbase.ipc.RpcServercreateRpcServer(org.apache.hadoop.hbase.Server server, String name, List<org.apache.hadoop.hbase.ipc.RpcServer.BlockingServiceAndInterface> services, InetSocketAddress bindAddress, org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.ipc.RpcScheduler scheduler) protected org.apache.hadoop.hbase.ipc.RpcServercreateTestFailingRpcServer(String name, List<org.apache.hadoop.hbase.ipc.RpcServer.BlockingServiceAndInterface> services, InetSocketAddress bindAddress, org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.ipc.RpcScheduler scheduler) static Stream<org.junit.jupiter.params.provider.Arguments>voidsetUp()static voidvoidtearDown()static voidMethods inherited from class org.apache.hadoop.hbase.ipc.AbstractTestIPC
setUpBeforeTest, testAsyncEcho, testAsyncRemoteError, testAsyncTimeout, testBadPreambleHeader, testCompressCellBlock, testConnectionCloseWithOutstandingRPCs, testGetConnectionRegistry, testGetConnectionRegistryError, testNoCodec, testRemoteError, testRpcMaxRequestSize, testRpcScheduler, testRpcServerForNotNullRemoteAddressInCallObject, testRTEDuringConnectionSetup, testTimeout, testTracingErrorIpc, testTracingSuccessIpc
-
Field Details
-
UTIL
-
PROVIDER
-
EVENT_LOOP_GROUP_CONFIG
-
caKeyType
-
certKeyType
-
keyPassword
-
acceptPlainText
-
clientTlsEnabled
-
x509TestContext
-
-
Constructor Details
-
TestNettyTlsIPC
public TestNettyTlsIPC(Class<? extends org.apache.hadoop.hbase.ipc.RpcServer> rpcServerImpl, X509KeyType caKeyType, X509KeyType certKeyType, char[] keyPassword, boolean acceptPlainText, boolean clientTlsEnabled)
-
-
Method Details
-
parameters
-
setUpBeforeClass
- Throws:
IOException
-
tearDownAfterClass
- Throws:
InterruptedException
-
setUp
- Throws:
IOException
-
tearDown
-
createRpcServer
protected org.apache.hadoop.hbase.ipc.RpcServer createRpcServer(org.apache.hadoop.hbase.Server server, String name, List<org.apache.hadoop.hbase.ipc.RpcServer.BlockingServiceAndInterface> services, InetSocketAddress bindAddress, org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.ipc.RpcScheduler scheduler) throws IOException - Overrides:
createRpcServerin classAbstractTestIPC- Throws:
IOException
-
createRpcClientNoCodec
protected org.apache.hadoop.hbase.ipc.AbstractRpcClient<?> createRpcClientNoCodec(org.apache.hadoop.conf.Configuration conf) - Specified by:
createRpcClientNoCodecin classAbstractTestIPC
-
createRpcClient
protected org.apache.hadoop.hbase.ipc.AbstractRpcClient<?> createRpcClient(org.apache.hadoop.conf.Configuration conf) - Specified by:
createRpcClientin classAbstractTestIPC
-
createRpcClientRTEDuringConnectionSetup
protected org.apache.hadoop.hbase.ipc.AbstractRpcClient<?> createRpcClientRTEDuringConnectionSetup(org.apache.hadoop.conf.Configuration conf) throws IOException - Specified by:
createRpcClientRTEDuringConnectionSetupin classAbstractTestIPC- Throws:
IOException
-
createTestFailingRpcServer
protected org.apache.hadoop.hbase.ipc.RpcServer createTestFailingRpcServer(String name, List<org.apache.hadoop.hbase.ipc.RpcServer.BlockingServiceAndInterface> services, InetSocketAddress bindAddress, org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.ipc.RpcScheduler scheduler) throws IOException - Overrides:
createTestFailingRpcServerin classAbstractTestIPC- Throws:
IOException
-
createBadAuthRpcClient
protected org.apache.hadoop.hbase.ipc.AbstractRpcClient<?> createBadAuthRpcClient(org.apache.hadoop.conf.Configuration conf) - Specified by:
createBadAuthRpcClientin classAbstractTestIPC
-