Package org.apache.hadoop.hbase.security
Class TestNettyTLSIPCFileWatcher
java.lang.Object
org.apache.hadoop.hbase.security.TestNettyTLSIPCFileWatcher
@Tag("org.apache.hadoop.hbase.testclassification.RPCTests") @Tag("org.apache.hadoop.hbase.testclassification.SmallTests")
public class TestNettyTLSIPCFileWatcher
extends Object
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.apache.hadoop.conf.Configurationprivate static org.apache.hadoop.hbase.util.NettyEventLoopGroupConfigprivate X509KeyTypeprivate static final org.slf4j.Loggerprivate static X509TestContextProviderprivate static org.apache.hadoop.hbase.HBaseServerBase<?>private org.apache.hadoop.hbase.io.crypto.tls.KeyStoreFileTypeprivate static final HBaseCommonTestingUtilprivate X509TestContext -
Constructor Summary
ConstructorsConstructorDescriptionTestNettyTLSIPCFileWatcher(X509KeyType keyType, org.apache.hadoop.hbase.io.crypto.tls.KeyStoreFileType storeFileType) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcreateAndStartFileWatcher(Path trustStorePath, CountDownLatch latch, Duration duration) private org.apache.hadoop.hbase.ipc.RpcServercreateRpcServer(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 voidvoidvoid
-
Field Details
-
LOG
-
CONF
-
UTIL
-
SERVER
-
PROVIDER
-
EVENT_LOOP_GROUP_CONFIG
-
x509TestContext
-
keyType
-
storeFileType
-
-
Constructor Details
-
TestNettyTLSIPCFileWatcher
public TestNettyTLSIPCFileWatcher(X509KeyType keyType, org.apache.hadoop.hbase.io.crypto.tls.KeyStoreFileType storeFileType)
-
-
Method Details
-
parameters
-
setUpBeforeClass
- Throws:
IOException
-
tearDownAfterClass
- Throws:
InterruptedException
-
setUp
- Throws:
IOException
-
tearDown
-
testReplaceServerKeystore
@TestTemplate public void testReplaceServerKeystore() throws IOException, org.apache.hbase.thirdparty.com.google.protobuf.ServiceException, GeneralSecurityException, org.bouncycastle.operator.OperatorCreationException, InterruptedException- Throws:
IOExceptionorg.apache.hbase.thirdparty.com.google.protobuf.ServiceExceptionGeneralSecurityExceptionorg.bouncycastle.operator.OperatorCreationExceptionInterruptedException
-
testReplaceClientAndServerKeystore
@TestTemplate public void testReplaceClientAndServerKeystore() throws GeneralSecurityException, IOException, org.bouncycastle.operator.OperatorCreationException, org.apache.hbase.thirdparty.com.google.protobuf.ServiceException, InterruptedException- Throws:
GeneralSecurityExceptionIOExceptionorg.bouncycastle.operator.OperatorCreationExceptionorg.apache.hbase.thirdparty.com.google.protobuf.ServiceExceptionInterruptedException
-
createRpcServer
private org.apache.hadoop.hbase.ipc.RpcServer createRpcServer(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 - Throws:
IOException
-
createAndStartFileWatcher
private void createAndStartFileWatcher(Path trustStorePath, CountDownLatch latch, Duration duration) throws IOException - Throws:
IOException
-