Class SaslChannelBuilderTest

java.lang.Object
org.apache.kafka.common.network.SaslChannelBuilderTest

public class SaslChannelBuilderTest extends Object
  • Constructor Details

    • SaslChannelBuilderTest

      public SaslChannelBuilderTest()
  • Method Details

    • tearDown

      @AfterEach public void tearDown()
    • testCloseBeforeConfigureIsIdempotent

      @Test public void testCloseBeforeConfigureIsIdempotent()
    • testCloseAfterConfigIsIdempotent

      @Test public void testCloseAfterConfigIsIdempotent()
    • testLoginManagerReleasedIfConfigureThrowsException

      @Test public void testLoginManagerReleasedIfConfigureThrowsException()
    • testNativeGssapiCredentials

      @Test public void testNativeGssapiCredentials() throws Exception
      Throws:
      Exception
    • testClientChannelBuilderWithBrokerConfigs

      @Test public void testClientChannelBuilderWithBrokerConfigs() throws Exception
      Verify that unparsed broker configs don't break clients. This is to ensure that clients created by brokers are not broken if broker configs are passed to clients.
      Throws:
      Exception
    • testBuildServerAuthenticator

      @Test public void testBuildServerAuthenticator() throws Exception
      Throws:
      Exception
    • testMTlsConfiguration

      @ParameterizedTest(name="[{index}] globalConfig={0}, listenerName={1}, listenerSpecificConfig={2} -> mTlsEnabled={3}") @MethodSource("mtlsConfigurationScenarios") public void testMTlsConfiguration(boolean globalConfig, String listenerName, boolean listenerSpecificConfig, boolean expectedMTlsEnabled) throws Exception
      Comprehensive test for all mTLS configuration combinations. Tests all 8 possible combinations of the 3 mTLS configs: - Global config (confluent.mtls.enable) - Listener name config (confluent.mtls.listener.name) - Listener-specific config (confluent.mtls.enabled.listener) Formula: mTlsEnabled = globalConfig invalid input: '&'invalid input: '&' (listenerNameMatches || listenerSpecificConfig)
      Throws:
      Exception
    • testAltLkcResolverPassed

      @Test public void testAltLkcResolverPassed() throws Exception
      Throws:
      Exception
    • testSetAltLkcResolverRejectsNull

      @Test public void testSetAltLkcResolverRejectsNull()
    • testSetAltLkcResolverAcceptsNonNull

      @Test public void testSetAltLkcResolverAcceptsNonNull()
    • testAltLkcResolverReplacedWhenSetTwice

      @Test public void testAltLkcResolverReplacedWhenSetTwice()
    • testAltLkcResolverPassedRegardlessOfConnectionMode

      @Test public void testAltLkcResolverPassedRegardlessOfConnectionMode()
    • testSniEnforcementExemptTenantsReconfiguration

      @Test public void testSniEnforcementExemptTenantsReconfiguration() throws Exception
      Throws:
      Exception