Class NettySslEngineFactoryTest

java.lang.Object
org.apache.kafka.common.security.ssl.DefaultSslEngineFactoryTest
org.apache.kafka.common.security.ssl.NettySslEngineFactoryTest

public class NettySslEngineFactoryTest extends DefaultSslEngineFactoryTest
  • Constructor Details

    • NettySslEngineFactoryTest

      public NettySslEngineFactoryTest()
  • Method Details

    • setUp

      @BeforeEach public void setUp() throws IOException
      Overrides:
      setUp in class DefaultSslEngineFactoryTest
      Throws:
      IOException
    • testPemKeyStoreConfigNoPassword

      @Test @Disabled public void testPemKeyStoreConfigNoPassword() throws Exception
      Overrides:
      testPemKeyStoreConfigNoPassword in class DefaultSslEngineFactoryTest
      Throws:
      Exception
    • testPemKeyStoreFileNoKeyPassword

      @Test @Disabled public void testPemKeyStoreFileNoKeyPassword() throws Exception
      Overrides:
      testPemKeyStoreFileNoKeyPassword in class DefaultSslEngineFactoryTest
      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

      @Test public void returnsServerSessionContextWhenConfigured() throws Exception
      Throws:
      Exception
    • throwsExceptionWhenClientApplicationProtocolNegotiatorNotConfigured

      @Test public void throwsExceptionWhenClientApplicationProtocolNegotiatorNotConfigured()
    • returnsClientApplicationProtocolNegotiatorWhenConfigured

      @Test public void returnsClientApplicationProtocolNegotiatorWhenConfigured()
    • returnsClientApplicationProtocolNegotiatorWhenConfiguredWithHttp2

      @Test public void returnsClientApplicationProtocolNegotiatorWhenConfiguredWithHttp2()
    • throwsExceptionWhenServerApplicationProtocolNegotiatorNotConfigured

      @Test public void throwsExceptionWhenServerApplicationProtocolNegotiatorNotConfigured()
    • returnsServerApplicationProtocolNegotiatorWhenConfigured

      @Test public void returnsServerApplicationProtocolNegotiatorWhenConfigured() throws Exception
      Throws:
      Exception
    • returnsServerApplicationProtocolNegotiatorWhenConfiguredWithHttp2

      @Test public void returnsServerApplicationProtocolNegotiatorWhenConfiguredWithHttp2() throws Exception
      Throws:
      Exception
    • throwsExceptionWhenServerSslEngineCreatedWithoutConfiguration

      @Test public void throwsExceptionWhenServerSslEngineCreatedWithoutConfiguration()
    • throwsExceptionWhenServerSslEngineCreatedWithNullContext

      @Test public void throwsExceptionWhenServerSslEngineCreatedWithNullContext()
    • createsServerSslEngineSuccessfullyWhenConfigured

      @Test public void createsServerSslEngineSuccessfullyWhenConfigured() throws Exception
      Throws:
      Exception
    • throwsExceptionWhenClientSslEngineCreatedWithoutConfigurationWithHostAndPort

      @Test public void throwsExceptionWhenClientSslEngineCreatedWithoutConfigurationWithHostAndPort()
    • createsClientSslEngineSuccessfullyWhenConfiguredWithHostAndPort

      @Test public void createsClientSslEngineSuccessfullyWhenConfiguredWithHostAndPort() throws Exception
      Throws:
      Exception
    • testReloadingOnClosed

      @Test public void testReloadingOnClosed() throws Exception
      Description copied from class: DefaultSslEngineFactoryTest
      Keystore, truststore listeners can be triggered after the factory is closed. This test ensures that no exception will be thrown in this case.
      Overrides:
      testReloadingOnClosed in class DefaultSslEngineFactoryTest
      Throws:
      Exception
    • testIsNettyJarsConfiguredCorrectly

      @Test public void testIsNettyJarsConfiguredCorrectly()
    • testFipsValidatedIfEnabled

      @Test public void testFipsValidatedIfEnabled()