Class SaslChannelBuilderTest
java.lang.Object
org.apache.kafka.common.network.SaslChannelBuilderTest
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidtearDown()voidvoidvoidvoidvoidVerify that unparsed broker configs don't break clients.voidvoidvoidvoidtestMTlsConfiguration(boolean globalConfig, String listenerName, boolean listenerSpecificConfig, boolean expectedMTlsEnabled) Comprehensive test for all mTLS configuration combinations.voidvoidvoidvoid
-
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
-
testClientChannelBuilderWithBrokerConfigs
-
testBuildServerAuthenticator
-
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
-
testSetAltLkcResolverRejectsNull
@Test public void testSetAltLkcResolverRejectsNull() -
testSetAltLkcResolverAcceptsNonNull
@Test public void testSetAltLkcResolverAcceptsNonNull() -
testAltLkcResolverReplacedWhenSetTwice
@Test public void testAltLkcResolverReplacedWhenSetTwice() -
testAltLkcResolverPassedRegardlessOfConnectionMode
@Test public void testAltLkcResolverPassedRegardlessOfConnectionMode() -
testSniEnforcementExemptTenantsReconfiguration
-