Class SslSelectorTest
java.lang.Object
org.apache.kafka.common.network.SelectorTest
org.apache.kafka.common.network.SslSelectorTest
- Direct Known Subclasses:
Tls12SelectorTest, Tls13SelectorTest
A set of tests for the selector. These use a test harness that runs a simple socket server that echos back responses.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetUp()voidtearDown()voidvoidvoidvoidvoidvoidInjects SSL handshake failures and tests for metric to reflect the failurevoidEstablishes SSL connections and verifies recorded handshake time is accuratevoidReconnects SSL connections and verifies recorded handshake time is accuratevoidTesting only the existence of these SSL metrics in the metrics registry and that the defaults are set to NaNMethods inherited from class SelectorTest
registerFailure, testCantSendWithInProgress, testChannelCloseWhileProcessingReceives, testChannelWithInvalidSniHostName, testChannelWithMissingSniHostName, testCipherMetricHasNoTenantTagBeforeAuth, testClearCompletedSendsAndReceives, testCloseAllChannels, testCloseDecrementsNoTenantKeyWhenAuthNeverHappened, testCloseDecrementsResolvedTenantKey, testCloseOldestConnection, testConnectDisconnectDuringInSinglePoll, testConnectException, testConnectionMaxIdleMs, testConnectionRefused, testConnectionsByClientMetric, testEarliestMtlsCertExpirationDefaultValue, testEmptyRequest, testErrorDuringConnection, testExistingConnectionId, testExpireClosedConnectionWithPendingReceives, testExpireConnectionWithPendingReceives, testFailedAuthLeavesTenantUnresolved, testGracefulClose, testIdleExpiryWithoutReadyKeys, testImmediatelyConnectedCleaned, testInboundConnectionsCountInConnectionCreationMetric, testInvalidSniMetricOnAuthenticatedConnection, testInvalidSniMetricOnSuccessWithoutMultiTenantPrincipal, testInvalidSniMetricOnUnauthenticatedConnection, testLargeMessageSequence, testLowestPriorityChannel, testMaybeRecordCipherSwapNoOpForNonMultiTenantPrincipal, testMaybeRecordIdempotentForSameTenant, testMaybeRecordNoOpWhenNoCipher, testMetricsCleanupOnSelectorClose, testMissingSniMetricOnAuthenticatedConnection, testMissingSniMetricOnUnauthenticatedConnection, testMtlsCertExpirationCounterNotAffectedByNonMtlsClose, testMtlsCertExpirationFreshCacheRejectsHigherValue, testMtlsCertExpirationNotResetWhenNonMtlsClosed, testMtlsCertExpirationResetOnLastClose, testMtlsCertExpirationStaleCacheOverwrite, testMtlsCertExpirationTracksMinimum, testMute, testNormalOperation, testNoRouteToHost, testNoSwapWhenCipherNotTracked, testNoSwapWhenTrackedCiphersEmpty, testOutboundConnectionsCountInConnectionCreationMetric, testPartialReceiveGracefulClose, testPartialSendAndReceiveReflectedInMetrics, testProxyProtocolConnectionMetrics, testProxyReadyAndDisconnectInSinglePoll, testReauthChangesTenant, testReverseAndAddDocumentsExistingBehavior, testSendLargeRequest, testSendWithoutConnecting, testServerDisconnect, testSniMetricsKeyedByTenantAndAuthenticationId, testSniRejectionConnectionClosedMetric, testSuccessfulMultiTenantAuthSwapsTenantTag, testSuiteCapacityExhaustionDropsNewTenantSilently, testThrottledProxyConnection, testWriteCompletesSendWithNoBytesWritten, verifySelectorEmpty
-
Constructor Details
-
SslSelectorTest
public SslSelectorTest()
-
-
Method Details
-
setUp
- Overrides:
setUpin classSelectorTest- Throws:
Exception
-
tearDown
- Overrides:
tearDownin classSelectorTest- Throws:
Exception
-
testConnectionWithCustomKeyManager
-
testDisconnectWithIntermediateBufferedBytes
-
testBytesBufferedChannelWithNoIncomingBytes
-
testBytesBufferedChannelAfterMute
-
testMuteOnOOM
- Overrides:
testMuteOnOOMin classSelectorTest- Throws:
Exception
-
testSSLMetricsCreation
-
testSSLHandshakeFailureMetric
-
testSSLHandshakeTimeMetric
-
testSSLHandshakeTimeMetricReconnect
-