Class NettySslEngineFactoryTest
java.lang.Object
org.apache.kafka.common.security.ssl.DefaultSslEngineFactoryTest
org.apache.kafka.common.security.ssl.NettySslEngineFactoryTest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidsetUp()voidvoidvoidvoidvoidKeystore, truststore listeners can be triggered after the factory is closed.voidvoidvoidvoidvoidvoidvoidvoidMethods inherited from class DefaultSslEngineFactoryTest
pemAsConfigValue, pemFilePath, returnsCipherSuitesWhenConfigured, returnsNullWhenCipherSuitesNotConfigured, teardown, testCarriageReturnLineFeed, testFileBasedStoreMaybeReload, testKeyStoreFileTriggerReload, testLeadingNewLines, testPemKeyStoreConfigWithKeyPassword, testPemKeyStoreFileWithKeyPassword, testPemTrustStoreConfigWithMultipleCerts, testPemTrustStoreConfigWithOneCert, testPemTrustStoreFile, testSSLContextFailsOnACCPFips, testTrailingNewLines, testTrustStoreFileAutoCreateForMTls, testTrustStoreFileFailedIfNotExistOrEmpty, testTrustStoreFileTriggerReload, testTrustStoreRaceCondition
-
Constructor Details
-
NettySslEngineFactoryTest
public NettySslEngineFactoryTest()
-
-
Method Details
-
setUp
- Overrides:
setUpin classDefaultSslEngineFactoryTest- Throws:
IOException
-
testPemKeyStoreConfigNoPassword
- Overrides:
testPemKeyStoreConfigNoPasswordin classDefaultSslEngineFactoryTest- Throws:
Exception
-
testPemKeyStoreFileNoKeyPassword
- Overrides:
testPemKeyStoreFileNoKeyPasswordin classDefaultSslEngineFactoryTest- Throws:
Exception
-
returnsTrueWhenKeystoreConfigsArePresent
@Test public void returnsTrueWhenKeystoreConfigsArePresent() -
returnsFalseWhenKeystoreTypeConfigIsMissing
@Test public void returnsFalseWhenKeystoreTypeConfigIsMissing() -
returnsFalseWhenKeystoreLocationConfigIsMissing
@Test public void returnsFalseWhenKeystoreLocationConfigIsMissing() -
returnsFalseWhenKeystorePasswordConfigIsMissing
@Test public void returnsFalseWhenKeystorePasswordConfigIsMissing() -
returnsFalseWhenConfigsAreEmpty
@Test public void returnsFalseWhenConfigsAreEmpty() -
throwsExceptionWhenClientSessionContextNotConfigured
@Test public void throwsExceptionWhenClientSessionContextNotConfigured() -
throwsExceptionWhenServerSessionContextNotConfigured
@Test public void throwsExceptionWhenServerSessionContextNotConfigured() -
returnsClientSessionContextWhenConfigured
@Test public void returnsClientSessionContextWhenConfigured() -
throwsExceptionWhenServerSessionContextNotConfiguredCorrectly
@Test public void throwsExceptionWhenServerSessionContextNotConfiguredCorrectly() -
returnsServerSessionContextWhenConfigured
-
throwsExceptionWhenClientApplicationProtocolNegotiatorNotConfigured
@Test public void throwsExceptionWhenClientApplicationProtocolNegotiatorNotConfigured() -
returnsClientApplicationProtocolNegotiatorWhenConfigured
@Test public void returnsClientApplicationProtocolNegotiatorWhenConfigured() -
returnsClientApplicationProtocolNegotiatorWhenConfiguredWithHttp2
@Test public void returnsClientApplicationProtocolNegotiatorWhenConfiguredWithHttp2() -
throwsExceptionWhenServerApplicationProtocolNegotiatorNotConfigured
@Test public void throwsExceptionWhenServerApplicationProtocolNegotiatorNotConfigured() -
returnsServerApplicationProtocolNegotiatorWhenConfigured
-
returnsServerApplicationProtocolNegotiatorWhenConfiguredWithHttp2
-
throwsExceptionWhenServerSslEngineCreatedWithoutConfiguration
@Test public void throwsExceptionWhenServerSslEngineCreatedWithoutConfiguration() -
throwsExceptionWhenServerSslEngineCreatedWithNullContext
@Test public void throwsExceptionWhenServerSslEngineCreatedWithNullContext() -
createsServerSslEngineSuccessfullyWhenConfigured
-
throwsExceptionWhenClientSslEngineCreatedWithoutConfigurationWithHostAndPort
@Test public void throwsExceptionWhenClientSslEngineCreatedWithoutConfigurationWithHostAndPort() -
createsClientSslEngineSuccessfullyWhenConfiguredWithHostAndPort
-
testReloadingOnClosed
Description copied from class:DefaultSslEngineFactoryTestKeystore, truststore listeners can be triggered after the factory is closed. This test ensures that no exception will be thrown in this case.- Overrides:
testReloadingOnClosedin classDefaultSslEngineFactoryTest- Throws:
Exception
-
testIsNettyJarsConfiguredCorrectly
@Test public void testIsNettyJarsConfiguredCorrectly() -
testFipsValidatedIfEnabled
@Test public void testFipsValidatedIfEnabled()
-