Class SaslNettyTransportTest
java.lang.Object
org.apache.kafka.common.security.authenticator.SaslNettyTransportTest
Test class to validate methods in
SaslNettyTransport class.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoid
-
Constructor Details
-
SaslNettyTransportTest
public SaslNettyTransportTest()
-
-
Method Details
-
mockStream
@BeforeEach public void mockStream() -
testNonSocketAddressNotSupported
@Test public void testNonSocketAddressNotSupported() -
testFinishInProgressSend
@Test public void testFinishInProgressSend() -
testIsSendInProgress
@Test public void testIsSendInProgress() -
testSslSession
@Test public void testSslSession() -
testServerAddress
@Test public void testServerAddress() -
testClientAddress
@Test public void testClientAddress() -
testClientPort
@Test public void testClientPort() -
testIsProxyModeLocal
@Test public void testIsProxyModeLocal() -
testPeerPrincipalWithSslSessionAndPeerCert
-
testPeerPrincipalWithSslSessionButNoPeerCert
-
testPeerPrincipalWithNoSslSession
@Test public void testPeerPrincipalWithNoSslSession() -
testProxyTlvProviderReturnsNullWhenNotSet
@Test public void testProxyTlvProviderReturnsNullWhenNotSet() -
testProxyTlvProviderReturnsSetValue
@Test public void testProxyTlvProviderReturnsSetValue() -
testSendResponse
- Throws:
IOException
-
testStartReauthenticationWithoutNetworkReceive
@Test public void testStartReauthenticationWithoutNetworkReceive() -
testStartReauthentication
@Test public void testStartReauthentication() -
testNetworkReceiveLargerThanMaxBufferSize
@Test public void testNetworkReceiveLargerThanMaxBufferSize() -
testReceiveClientTokenOrKafkaRequest
@Test public void testReceiveClientTokenOrKafkaRequest() -
testNotifyMtlsCredentialsIgnoredInvokesCallback
@Test public void testNotifyMtlsCredentialsIgnoredInvokesCallback() -
testNotifyMtlsCredentialsIgnoredWithNullCallback
@Test public void testNotifyMtlsCredentialsIgnoredWithNullCallback() -
testOnAuthResolvedFiresAllHooksInRegistrationOrder
@Test public void testOnAuthResolvedFiresAllHooksInRegistrationOrder() -
testOnAuthResolvedNoOpWhenNoHooksRegistered
@Test public void testOnAuthResolvedNoOpWhenNoHooksRegistered() -
testOnAuthResolvedSkipsAllHooksWhenResolutionIsNull
@Test public void testOnAuthResolvedSkipsAllHooksWhenResolutionIsNull() -
testOnAuthResolvedReFiresOnEachInvocation
@Test public void testOnAuthResolvedReFiresOnEachInvocation() -
testOnAuthResolvedRejectsNullHook
@Test public void testOnAuthResolvedRejectsNullHook() -
testOnAuthResolvedHookExceptionDoesNotBlockOtherHooks
@Test public void testOnAuthResolvedHookExceptionDoesNotBlockOtherHooks() -
testHandleAuthResolvedSwallowsSupplierException
@Test public void testHandleAuthResolvedSwallowsSupplierException()
-