Class KafkaAdminClientTest

java.lang.Object
org.apache.kafka.clients.admin.KafkaAdminClientTestBase
org.apache.kafka.clients.admin.KafkaAdminClientTest

public class KafkaAdminClientTest extends KafkaAdminClientTestBase
  • Constructor Details

    • KafkaAdminClientTest

      public KafkaAdminClientTest()
  • Method Details

    • testDefaultApiTimeoutAndRequestTimeoutConflicts

      @Test public void testDefaultApiTimeoutAndRequestTimeoutConflicts()
    • testParseDescribeClusterResponseWithError

      @Test public void testParseDescribeClusterResponseWithError()
    • testParseDescribeClusterResponseWithUnexpectedEndpointType

      @Test public void testParseDescribeClusterResponseWithUnexpectedEndpointType()
    • testParseSuccessfulDescribeClusterResponse

      @ParameterizedTest @ValueSource(booleans={false,true}) public void testParseSuccessfulDescribeClusterResponse(boolean includeController)
    • testGetOrCreateListValue

      @Test public void testGetOrCreateListValue()
    • testCalcTimeoutMsRemainingAsInt

      @Test public void testCalcTimeoutMsRemainingAsInt()
    • testPrettyPrintException

      @Test public void testPrettyPrintException()
    • testGenerateClientId

      @Test public void testGenerateClientId()
    • testMetricsReporterAutoGeneratedClientId

      @Test public void testMetricsReporterAutoGeneratedClientId()
    • testDisableJmxReporter

      @Test public void testDisableJmxReporter()
    • testExplicitlyEnableJmxReporter

      @Test public void testExplicitlyEnableJmxReporter()
    • testExplicitlyEnableTelemetryReporter

      @Test public void testExplicitlyEnableTelemetryReporter()
    • testTelemetryReporterIsDisabledByDefault

      @Test public void testTelemetryReporterIsDisabledByDefault()
    • testCloseAdminClient

      @Test public void testCloseAdminClient()
    • testCloseAdminClientInCallback

      @Test @Timeout(10L) public void testCloseAdminClientInCallback() throws InterruptedException
      Test if admin client can be closed in the callback invoked when an api call completes. If calling Admin.close() in callback, AdminClient thread hangs
      Throws:
      InterruptedException
    • testAdminClientFailureWhenClosed

      @Test public void testAdminClientFailureWhenClosed()
    • testTimeoutWithoutMetadata

      @Test public void testTimeoutWithoutMetadata() throws Exception
      Test that the client properly times out when we don't receive any metadata.
      Throws:
      Exception
    • testConnectionFailureOnMetadataUpdate

      @Test public void testConnectionFailureOnMetadataUpdate() throws Exception
      Throws:
      Exception
    • testUnreachableBootstrapServer

      @Test public void testUnreachableBootstrapServer() throws Exception
      Throws:
      Exception
    • testUnreachableBootstrapServerNoRebootstrap

      @Test public void testUnreachableBootstrapServerNoRebootstrap() throws Exception
      Throws:
      Exception
    • testPropagatedMetadataFetchException

      @Test public void testPropagatedMetadataFetchException() throws Exception
      Test that we propagate exceptions encountered when fetching metadata.
      Throws:
      Exception
    • testAdminClientApisAuthenticationFailure

      @Test public void testAdminClientApisAuthenticationFailure()
    • testDescribeCluster

      @Test public void testDescribeCluster() throws Exception
      Throws:
      Exception
    • testDescribeClusterHandleError

      @Test public void testDescribeClusterHandleError()
    • testDescribeClusterFailBack

      @Test public void testDescribeClusterFailBack() throws Exception
      Throws:
      Exception
    • testDescribeClusterHandleUnsupportedVersionForIncludingFencedBrokers

      @Test public void testDescribeClusterHandleUnsupportedVersionForIncludingFencedBrokers()
    • testUpdateFeaturesDuringSuccess

      @ParameterizedTest @ValueSource(shorts={1,2}) public void testUpdateFeaturesDuringSuccess(short version) throws Exception
      Throws:
      Exception
    • testUpdateFeaturesTopLevelError

      @Test public void testUpdateFeaturesTopLevelError() throws Exception
      Throws:
      Exception
    • testUpdateFeaturesHandleNotControllerException

      @ParameterizedTest @ValueSource(shorts={1,2}) public void testUpdateFeaturesHandleNotControllerException(short version) throws Exception
      Throws:
      Exception
    • testUpdateFeaturesShouldFailRequestForEmptyUpdates

      @Test public void testUpdateFeaturesShouldFailRequestForEmptyUpdates()
    • testUpdateFeaturesShouldFailRequestForInvalidFeatureName

      @Test public void testUpdateFeaturesShouldFailRequestForInvalidFeatureName()
    • testUpdateFeaturesShouldFailRequestInClientWhenDowngradeFlagIsNotSetDuringDeletion

      @Test public void testUpdateFeaturesShouldFailRequestInClientWhenDowngradeFlagIsNotSetDuringDeletion()
    • testDescribeFeaturesSuccess

      @Test public void testDescribeFeaturesSuccess() throws Exception
      Throws:
      Exception
    • testDescribeFeaturesFailure

      @Test public void testDescribeFeaturesFailure()
    • testDescribeFeaturesWithNodeSuccess

      @Test public void testDescribeFeaturesWithNodeSuccess() throws Exception
      Throws:
      Exception
    • testDescribeFeaturesWithNodeFailure

      @Test public void testDescribeFeaturesWithNodeFailure() throws Exception
      Throws:
      Exception
    • testDescribeMetadataQuorumSuccess

      @Test public void testDescribeMetadataQuorumSuccess() throws Exception
      Throws:
      Exception
    • testDescribeMetadataQuorumRetriableError

      @Test public void testDescribeMetadataQuorumRetriableError() throws Exception
      Throws:
      Exception
    • testDescribeMetadataQuorumFailure

      @Test public void testDescribeMetadataQuorumFailure()
    • testGetSubLevelError

      @Test public void testGetSubLevelError()
    • testSuccessfulRetryAfterRequestTimeout

      @Test public void testSuccessfulRetryAfterRequestTimeout() throws Exception
      Throws:
      Exception
    • testDefaultApiTimeout

      @Test public void testDefaultApiTimeout() throws Exception
      Throws:
      Exception
    • testDefaultApiTimeoutOverride

      @Test public void testDefaultApiTimeoutOverride() throws Exception
      Throws:
      Exception
    • testRequestTimeoutExceedingDefaultApiTimeout

      @Test public void testRequestTimeoutExceedingDefaultApiTimeout() throws Exception
      Throws:
      Exception
    • testUnregisterBrokerSuccess

      @Test public void testUnregisterBrokerSuccess() throws InterruptedException, ExecutionException
      Throws:
      InterruptedException
      ExecutionException
    • testUnregisterBrokerFailure

      @Test public void testUnregisterBrokerFailure() throws ExecutionException, InterruptedException
      Throws:
      ExecutionException
      InterruptedException
    • testUnregisterBrokerTimeoutAndSuccessRetry

      @Test public void testUnregisterBrokerTimeoutAndSuccessRetry() throws ExecutionException, InterruptedException
      Throws:
      ExecutionException
      InterruptedException
    • testUnregisterBrokerTimeoutAndFailureRetry

      @Test public void testUnregisterBrokerTimeoutAndFailureRetry() throws ExecutionException, InterruptedException
      Throws:
      ExecutionException
      InterruptedException
    • testUnregisterBrokerTimeoutMaxRetry

      @Test public void testUnregisterBrokerTimeoutMaxRetry() throws ExecutionException, InterruptedException
      Throws:
      ExecutionException
      InterruptedException
    • testUnregisterBrokerTimeoutMaxWait

      @Test public void testUnregisterBrokerTimeoutMaxWait() throws ExecutionException, InterruptedException
      Throws:
      ExecutionException
      InterruptedException
    • testUnregisterControllerSuccess

      @Test public void testUnregisterControllerSuccess() throws InterruptedException, ExecutionException
      Throws:
      InterruptedException
      ExecutionException
    • testUnregisterControllerFailure

      @Test public void testUnregisterControllerFailure() throws ExecutionException, InterruptedException
      Throws:
      ExecutionException
      InterruptedException
    • testUnregisterControllerTimeoutAndSuccessRetry

      @Test public void testUnregisterControllerTimeoutAndSuccessRetry() throws ExecutionException, InterruptedException
      Throws:
      ExecutionException
      InterruptedException
    • testUnregisterControllerTimeoutAndFailureRetry

      @Test public void testUnregisterControllerTimeoutAndFailureRetry() throws ExecutionException, InterruptedException
      Throws:
      ExecutionException
      InterruptedException
    • testUnregisterControllerTimeoutMaxRetry

      @Test public void testUnregisterControllerTimeoutMaxRetry() throws ExecutionException, InterruptedException
      Throws:
      ExecutionException
      InterruptedException
    • testUnregisterControllerTimeoutMaxWait

      @Test public void testUnregisterControllerTimeoutMaxWait() throws ExecutionException, InterruptedException
      Throws:
      ExecutionException
      InterruptedException
    • testClientSideTimeoutAfterFailureToSend

      @Test public void testClientSideTimeoutAfterFailureToSend() throws Exception
      Test that if the client can obtain a node assignment, but can't send to the given node, it will disconnect and try a different node.
      Throws:
      Exception
    • testClientSideTimeoutAfterFailureToReceiveResponse

      @Test public void testClientSideTimeoutAfterFailureToReceiveResponse() throws Exception
      Test that if the client can send to a node, but doesn't receive a response, it will disconnect and try a different node.
      Throws:
      Exception
    • testClientInstanceId

      @Test public void testClientInstanceId()
    • testClientInstanceIdInvalidTimeout

      @Test public void testClientInstanceIdInvalidTimeout()
    • testClientInstanceIdNoTelemetryReporterRegistered

      @Test public void testClientInstanceIdNoTelemetryReporterRegistered()
    • testListClientMetricsResources

      @Test public void testListClientMetricsResources() throws Exception
      Throws:
      Exception
    • testListClientMetricsResourcesEmpty

      @Test public void testListClientMetricsResourcesEmpty() throws Exception
      Throws:
      Exception
    • testListClientMetricsResourcesNotSupported

      @Test public void testListClientMetricsResourcesNotSupported()
    • testListConfigResources

      @Test public void testListConfigResources() throws Exception
      Throws:
      Exception
    • testListConfigResourcesEmpty

      @Test public void testListConfigResourcesEmpty() throws Exception
      Throws:
      Exception
    • testListConfigResourcesNotSupported

      @Test public void testListConfigResourcesNotSupported()
    • testCallFailWithUnsupportedVersionExceptionDoesNotHaveConcurrentModificationException

      @Test public void testCallFailWithUnsupportedVersionExceptionDoesNotHaveConcurrentModificationException() throws InterruptedException
      Throws:
      InterruptedException
    • testAddRaftVoterRequest

      @ParameterizedTest @CsvSource({"false, false","false, true","true, false","true, true"}) public void testAddRaftVoterRequest(boolean fail, boolean sendClusterId) throws Exception
      Throws:
      Exception
    • testRemoveRaftVoterRequest

      @ParameterizedTest @CsvSource({"false, false","false, true","true, false","true, true"}) public void testRemoveRaftVoterRequest(boolean fail, boolean sendClusterId) throws Exception
      Throws:
      Exception
    • testOutOfMemoryErrorPropagation

      @Test public void testOutOfMemoryErrorPropagation() throws Exception
      Test that OutOfMemoryError is properly propagated and not masked as TimeoutException. This test simulates an OOM error during response processing and verifies it propagates without being wrapped. This is a regression test for KAFKA-19932.
      Throws:
      Exception
    • tearDown

      @AfterAll public static void tearDown() throws Exception
      Throws:
      Exception
    • testAlterBrokerReplicaExclusionHandlesNotControllerException

      @Test public void testAlterBrokerReplicaExclusionHandlesNotControllerException() throws Exception
      Throws:
      Exception
    • testAlterBrokerReplicaExclusionHandlesClusterAuthorizationException

      @Test public void testAlterBrokerReplicaExclusionHandlesClusterAuthorizationException() throws Exception
      Throws:
      Exception
    • testAlterBrokerReplicaExclusionHandlesTimeoutException

      @Test public void testAlterBrokerReplicaExclusionHandlesTimeoutException() throws Exception
      Throws:
      Exception
    • testAlterBrokerReplicaExclusionHandlesInvalidReasons

      @Test public void testAlterBrokerReplicaExclusionHandlesInvalidReasons() throws Exception
      Throws:
      Exception
    • testAlterBrokerReplicaExclusionThrowsUnrepresentableBrokerIdException

      @Test public void testAlterBrokerReplicaExclusionThrowsUnrepresentableBrokerIdException() throws Exception
      Throws:
      Exception
    • testAlterBrokerReplicaExclusionExclusionLevelException

      @Test public void testAlterBrokerReplicaExclusionExclusionLevelException() throws Exception
      Throws:
      Exception
    • testAlterBrokerReplicaExclusionSuccess

      @Test public void testAlterBrokerReplicaExclusionSuccess() throws Exception
      Throws:
      Exception
    • testDescribeBrokerReplicaExclusionHandlesNotControllerException

      @Test public void testDescribeBrokerReplicaExclusionHandlesNotControllerException() throws Exception
      Throws:
      Exception
    • testDescribeBrokerReplicaExclusionHandlesClusterAuthorizationException

      @Test public void testDescribeBrokerReplicaExclusionHandlesClusterAuthorizationException() throws Exception
      Throws:
      Exception
    • testDescribeBrokerReplicaExclusionHandlesTimeoutException

      @Test public void testDescribeBrokerReplicaExclusionHandlesTimeoutException() throws Exception
      Throws:
      Exception
    • testDescribeBrokerReplicaExclusionSuccess

      @Test public void testDescribeBrokerReplicaExclusionSuccess() throws Exception
      Throws:
      Exception
    • testRemoveBrokersHandlesNotControllerException

      @Test public void testRemoveBrokersHandlesNotControllerException() throws Exception
      Throws:
      Exception
    • testRemoveBrokersHandlesClusterAuthorizationException

      @Test public void testRemoveBrokersHandlesClusterAuthorizationException() throws Exception
      Throws:
      Exception
    • testRemoveBrokersHandlesInvalidRequestException

      @Test public void testRemoveBrokersHandlesInvalidRequestException() throws Exception
      Throws:
      Exception
    • testRemoveBrokersHandlesTimeoutException

      @Test public void testRemoveBrokersHandlesTimeoutException() throws Exception
      Throws:
      Exception
    • testRemoveBrokersHandlesBrokerLevelException

      @Test public void testRemoveBrokersHandlesBrokerLevelException() throws Exception
      Throws:
      Exception
    • testRemoveBrokersRequest

      @Test public void testRemoveBrokersRequest() throws Exception
      Throws:
      Exception
    • testChangeReplicationFactorRequest

      @Test public void testChangeReplicationFactorRequest() throws Exception
      Throws:
      Exception
    • testChangeReplicationFactorHandlesNotControllerException

      @Test public void testChangeReplicationFactorHandlesNotControllerException() throws Exception
      Throws:
      Exception
    • testChangeReplicationFactorHandlesTopLevelException

      @Test public void testChangeReplicationFactorHandlesTopLevelException() throws Exception
      Throws:
      Exception
    • testChangeReplicationFactorHandlesTimeoutException

      @Test public void testChangeReplicationFactorHandlesTimeoutException() throws Exception
      Throws:
      Exception
    • testChangeReplicationFactorRejectsInvalidInput

      @Test public void testChangeReplicationFactorRejectsInvalidInput() throws Exception
      Throws:
      Exception
    • testAddBrokersRequest

      @Test public void testAddBrokersRequest() throws Exception
      Throws:
      Exception
    • testAddBrokersHandlesNotControllerException

      @Test public void testAddBrokersHandlesNotControllerException() throws Exception
      Throws:
      Exception
    • testAddBrokersHandlesTopLevelException

      @Test public void testAddBrokersHandlesTopLevelException() throws Exception
      Throws:
      Exception
    • testAddBrokersHandlesTimeoutException

      @Test public void testAddBrokersHandlesTimeoutException() throws Exception
      Throws:
      Exception
    • testAddBrokersRejectsInvalidInput

      @Test public void testAddBrokersRejectsInvalidInput() throws Exception
      Throws:
      Exception
    • testDescribeReplicationFactorChangeHandlesNotControllerException

      @Test public void testDescribeReplicationFactorChangeHandlesNotControllerException() throws Exception
      Throws:
      Exception
    • testDescribeReplicationFactorChangeReturnsEmptyWhenNoneTracked

      @Test public void testDescribeReplicationFactorChangeReturnsEmptyWhenNoneTracked() throws Exception
      Throws:
      Exception
    • testDescribeReplicationFactorChangeHandlesTopLevelException

      @Test public void testDescribeReplicationFactorChangeHandlesTopLevelException() throws Exception
      Throws:
      Exception
    • testDescribeReplicationFactorChangeHandlesTimeoutException

      @Test public void testDescribeReplicationFactorChangeHandlesTimeoutException() throws Exception
      Throws:
      Exception
    • testDescribeReplicationFactorChangePopulatesPerTopicFields

      @Test public void testDescribeReplicationFactorChangePopulatesPerTopicFields() throws Exception
      Throws:
      Exception
    • testDescribeReplicationFactorChangeHandlesUnknownStatus

      @Test public void testDescribeReplicationFactorChangeHandlesUnknownStatus() throws Exception
      Throws:
      Exception
    • testDescribeReplicationFactorChangeHandlesUnknownAction

      @Test public void testDescribeReplicationFactorChangeHandlesUnknownAction() throws Exception
      Throws:
      Exception
    • testCancelReplicationFactorChangeRequest

      @Test public void testCancelReplicationFactorChangeRequest() throws Exception
      Throws:
      Exception
    • testCancelReplicationFactorChangeHandlesNotControllerException

      @Test public void testCancelReplicationFactorChangeHandlesNotControllerException() throws Exception
      Throws:
      Exception
    • testCancelReplicationFactorChangeHandlesTopLevelException

      @Test public void testCancelReplicationFactorChangeHandlesTopLevelException() throws Exception
      Throws:
      Exception
    • testCancelReplicationFactorChangeHandlesTimeoutException

      @Test public void testCancelReplicationFactorChangeHandlesTimeoutException() throws Exception
      Throws:
      Exception
    • testCancelReplicationFactorChangeRejectsInvalidInput

      @Test public void testCancelReplicationFactorChangeRejectsInvalidInput() throws Exception
      Throws:
      Exception
    • testDescribeBalancerStatusHandlesNotControllerException

      @Test public void testDescribeBalancerStatusHandlesNotControllerException() throws Exception
      Throws:
      Exception
    • testDescribeBalancerStatusHandlesClusterAuthorizationException

      @Test public void testDescribeBalancerStatusHandlesClusterAuthorizationException() throws Exception
      Throws:
      Exception
    • testDescribeBalancerStatusHandlesTimeoutException

      @Test public void testDescribeBalancerStatusHandlesTimeoutException() throws Exception
      Throws:
      Exception
    • testDescribeBalancerStatusNoErrors

      @Test public void testDescribeBalancerStatusNoErrors() throws Exception
      Throws:
      Exception
    • testDescribeBalancerStatusWithUnknownStatusValue

      @Test public void testDescribeBalancerStatusWithUnknownStatusValue() throws Exception
      Throws:
      Exception
    • testTriggerEvenClusterLoadHandlesNotControllerException

      @Test public void testTriggerEvenClusterLoadHandlesNotControllerException() throws Exception
      Throws:
      Exception
    • testTriggerEvenClusterLoadHandlesClusterAuthorizationException

      @Test public void testTriggerEvenClusterLoadHandlesClusterAuthorizationException() throws Exception
      Throws:
      Exception
    • testTriggerEvenClusterLoadHandlesTimeoutException

      @Test public void testTriggerEvenClusterLoadHandlesTimeoutException() throws Exception
      Throws:
      Exception
    • testTriggerEvenClusterLoadWithError

      @Test public void testTriggerEvenClusterLoadWithError() throws Exception
      Throws:
      Exception
    • testTriggerEvenClusterLoadSuccess

      @Test public void testTriggerEvenClusterLoadSuccess() throws Exception
      Throws:
      Exception
    • testComputeEvenClusterLoadPlanHandlesNotControllerException

      @Test public void testComputeEvenClusterLoadPlanHandlesNotControllerException() throws Exception
      Throws:
      Exception
    • testComputeEvenClusterLoadPlanHandlesClusterAuthorizationException

      @Test public void testComputeEvenClusterLoadPlanHandlesClusterAuthorizationException() throws Exception
      Throws:
      Exception
    • testComputeEvenClusterLoadPlanHandlesTimeoutException

      @Test public void testComputeEvenClusterLoadPlanHandlesTimeoutException() throws Exception
      Throws:
      Exception
    • testComputeEvenClusterLoadPlanWithError

      @Test public void testComputeEvenClusterLoadPlanWithError() throws Exception
      Throws:
      Exception
    • testComputeEvenClusterLoadPlanSuccess

      @Test public void testComputeEvenClusterLoadPlanSuccess() throws Exception
      Throws:
      Exception
    • testDescribeEvenClusterLoadStatusHandlesNotControllerException

      @Test public void testDescribeEvenClusterLoadStatusHandlesNotControllerException() throws Exception
      Throws:
      Exception
    • testDescribeEvenClusterLoadStatusHandlesClusterAuthorizationException

      @Test public void testDescribeEvenClusterLoadStatusHandlesClusterAuthorizationException() throws Exception
      Throws:
      Exception
    • testDescribeEvenClusterLoadStatusHandlesTimeoutException

      @Test public void testDescribeEvenClusterLoadStatusHandlesTimeoutException() throws Exception
      Throws:
      Exception
    • testDescribeEvenClusterLoadStatusNoErrors

      @Test public void testDescribeEvenClusterLoadStatusNoErrors() throws Exception
      Throws:
      Exception
    • testDescribeEvenClusterLoadStatusWithUnknownStatusValues

      @Test public void testDescribeEvenClusterLoadStatusWithUnknownStatusValues() throws Exception
      Throws:
      Exception
    • testDescribeEvenClusterLoadStatusWithNullStatusValues

      @Test public void testDescribeEvenClusterLoadStatusWithNullStatusValues() throws Exception
      Throws:
      Exception
    • testRemoveBrokerWithValidBrokerIds

      @Test public void testRemoveBrokerWithValidBrokerIds() throws Exception
      Throws:
      Exception
    • testRemoveBrokersHandlesInvalidBrokerIds

      @Test public void testRemoveBrokersHandlesInvalidBrokerIds() throws Exception
      Throws:
      Exception
    • testRemoveBrokerHandlesPartitionUnavailability

      @Test public void testRemoveBrokerHandlesPartitionUnavailability() throws Exception
      Throws:
      Exception
    • testDescribeBrokerRemovalsHandlesNotControllerException

      @Test public void testDescribeBrokerRemovalsHandlesNotControllerException() throws Exception
      Upon receiving a NOT_CONTROLLER error, the admin client should update its metadata and retry the call
      Throws:
      Exception
    • testDescribeBrokerRemovalsHandlesTopLevelException

      @Test public void testDescribeBrokerRemovalsHandlesTopLevelException() throws Exception
      Throws:
      Exception
    • testDescribeBrokerRemovalsHandlesTimeoutException

      @Test public void testDescribeBrokerRemovalsHandlesTimeoutException() throws Exception
      Test a scenario where the AdminClient cannot find the controller for longer than the request timeout. It should throw a TimeoutException
      Throws:
      Exception
    • testDescribeBrokerRemovalsHandlesBrokerLevelRemovalExceptions

      @Test public void testDescribeBrokerRemovalsHandlesBrokerLevelRemovalExceptions() throws Exception
      Throws:
      Exception
    • testDescribeBrokerRemovalsHandlesRequestsWithoutExclusionRelatedFields

      @Test public void testDescribeBrokerRemovalsHandlesRequestsWithoutExclusionRelatedFields() throws Exception
      Throws:
      Exception
    • testDescribeBrokerRemovalsHandlesRequestsWithUnknownStatusFields

      @Test public void testDescribeBrokerRemovalsHandlesRequestsWithUnknownStatusFields() throws Exception
      Throws:
      Exception
    • testDescribeBrokerRemovalsPopulatesRightBrokerRemovalLevelExceptions

      @Test public void testDescribeBrokerRemovalsPopulatesRightBrokerRemovalLevelExceptions() throws ExecutionException, InterruptedException
      Throws:
      ExecutionException
      InterruptedException
    • testDescribeTopicWithObserver

      @Test public void testDescribeTopicWithObserver() throws Exception
      Throws:
      Exception
    • testMetadataRetries

      @Test public void testMetadataRetries() throws Exception
      Throws:
      Exception
    • testDescribeTopicWithObserverWithDescribeTopicPartitionsApi

      @Test public void testDescribeTopicWithObserverWithDescribeTopicPartitionsApi() throws Exception
      Throws:
      Exception
    • testDescribeBrokerAdditionsHandlesNotController

      @Test public void testDescribeBrokerAdditionsHandlesNotController() throws Exception
      Upon receiving a NOT_CONTROLLER error, the admin client should update its metadata and retry the call
      Throws:
      Exception
    • testDescribeBrokerAdditionsHandlesTopLevelError

      @Test public void testDescribeBrokerAdditionsHandlesTopLevelError()
    • testDescribeBrokerAdditionsHandlesBrokerLevelErrors

      @Test public void testDescribeBrokerAdditionsHandlesBrokerLevelErrors() throws Exception
      Throws:
      Exception
    • testDescribeBrokerAdditionsHandlesTimeoutException

      @Test public void testDescribeBrokerAdditionsHandlesTimeoutException() throws Exception
      Throws:
      Exception
    • testDescribeBrokerAdditionsHandlesUnrecognizedStatusValues

      @Test public void testDescribeBrokerAdditionsHandlesUnrecognizedStatusValues() throws Exception
      Throws:
      Exception
    • testDescribeVirtualTopicById

      @Test public void testDescribeVirtualTopicById() throws ExecutionException, InterruptedException
      Throws:
      ExecutionException
      InterruptedException
    • testListConsumerGroupOffsetsRetriableErrorsWithMultipleGroups

      @Test public void testListConsumerGroupOffsetsRetriableErrorsWithMultipleGroups() throws ExecutionException, InterruptedException
      Throws:
      ExecutionException
      InterruptedException
    • testListConsumerGroupOffsetsNonRetriableErrorsWithMultipleGroups

      @Test public void testListConsumerGroupOffsetsNonRetriableErrorsWithMultipleGroups()
    • testListConsumerGroupOffsetsWithMultipleGroups

      @Test public void testListConsumerGroupOffsetsWithMultipleGroups() throws Exception
      Throws:
      Exception
    • testClusterLinkIncrementalAlterConfigs

      @Test public void testClusterLinkIncrementalAlterConfigs() throws Exception
      Throws:
      Exception
    • testListPartitionReassignmentsWithObservers

      @Test public void testListPartitionReassignmentsWithObservers() throws Exception
      Throws:
      Exception
    • testReplicaStatus

      @Test public void testReplicaStatus() throws Exception
      Throws:
      Exception
    • testReplicaStatusErrors

      @Test public void testReplicaStatusErrors() throws Exception
      Throws:
      Exception
    • testResolveOffsetRange

      @Test public void testResolveOffsetRange() throws Exception
      Throws:
      Exception
    • testResolveOffsetRangeWithByokEncryption

      @Test public void testResolveOffsetRangeWithByokEncryption() throws Exception
      Throws:
      Exception
    • testResolveOffsetRangeWithByokEncryptionCombinedObject

      @Test public void testResolveOffsetRangeWithByokEncryptionCombinedObject() throws Exception
      Throws:
      Exception
    • testResolveOffsetRangeWithoutByokEncryption

      @Test public void testResolveOffsetRangeWithoutByokEncryption() throws Exception
      Throws:
      Exception
    • testResolveOffsetRangeRetriableErrors

      @Test public void testResolveOffsetRangeRetriableErrors() throws Exception
      Throws:
      Exception
    • testResolveOffsetRangeNonRetriableErrors

      @Test public void testResolveOffsetRangeNonRetriableErrors() throws Exception
      Throws:
      Exception
    • testDescribeFeaturesWithNonRegisteredNode

      @Test public void testDescribeFeaturesWithNonRegisteredNode() throws Exception
      Throws:
      Exception
    • testCreateClusterLinks

      @Test public void testCreateClusterLinks() throws Exception
      Throws:
      Exception
    • testCreateClusterLinksRetriableErrors

      @Test public void testCreateClusterLinksRetriableErrors() throws Exception
      Throws:
      Exception
    • testCreateClusterLinksNonRetriableErrors

      @Test public void testCreateClusterLinksNonRetriableErrors() throws Exception
      Throws:
      Exception
    • testListClusterLinks

      @Test public void testListClusterLinks() throws Exception
      Throws:
      Exception
    • testListClusterLinksRetriableErrors

      @Test public void testListClusterLinksRetriableErrors() throws Exception
      Throws:
      Exception
    • testListClusterLinksNonRetriableErrors

      @Test public void testListClusterLinksNonRetriableErrors() throws Exception
      Throws:
      Exception
    • testDescribeClusterLinksToAllBrokersHappyPath

      @Test public void testDescribeClusterLinksToAllBrokersHappyPath() throws Exception
      Throws:
      Exception
    • testDescribeClusterLinksUsingFindCoordinatorHappyPath

      @Test public void testDescribeClusterLinksUsingFindCoordinatorHappyPath() throws Exception
      Throws:
      Exception
    • testDescribeMirrorsUsingController

      @Test public void testDescribeMirrorsUsingController() throws Exception
      Throws:
      Exception
    • testDescribeSwitchoverStatusHappyPath

      @Test public void testDescribeSwitchoverStatusHappyPath() throws Exception
      Throws:
      Exception
    • testDescribeSwitchoverStatusWithNonMirrorTopic

      @Test public void testDescribeSwitchoverStatusWithNonMirrorTopic() throws Exception
      Throws:
      Exception
    • testDescribeSwitchoverStatusFailsOnClusterAuthorization

      @Test public void testDescribeSwitchoverStatusFailsOnClusterAuthorization() throws Exception
      Throws:
      Exception
    • testDescribeSwitchoverStatusFailsOnUnsupportedVersion

      @Test public void testDescribeSwitchoverStatusFailsOnUnsupportedVersion() throws Exception
      Throws:
      Exception
    • testDescribeMirrorsUsingFindCoordinatorHappyPath

      @Test public void testDescribeMirrorsUsingFindCoordinatorHappyPath() throws Exception
      Throws:
      Exception
    • testDescribeMirrorsUsesControllerAfterUnsupportedVersionException

      @Test public void testDescribeMirrorsUsesControllerAfterUnsupportedVersionException() throws Exception
      Throws:
      Exception
    • testDescribeMirrorsUsesControllerForSubsetOfTopicsAfterUnsupportedVersionException

      @Test public void testDescribeMirrorsUsesControllerForSubsetOfTopicsAfterUnsupportedVersionException() throws Exception
      Throws:
      Exception
    • testDescribeMirrorsUsesControllerAfterInvalidRequestFromFindCoordinators

      @Test public void testDescribeMirrorsUsesControllerAfterInvalidRequestFromFindCoordinators() throws Exception
      Throws:
      Exception
    • testDescribeMirrorsUsingFindCoordinatorRetriesWhenCoordinatorLoading

      @Test public void testDescribeMirrorsUsingFindCoordinatorRetriesWhenCoordinatorLoading() throws Exception
      Throws:
      Exception
    • testDescribeMirrorsUsingFindCoordinatorRetriesWhenCoordinatorChanges

      @ParameterizedTest @ValueSource(strings={"COORDINATOR_NOT_AVAILABLE","NOT_COORDINATOR","NOT_CONTROLLER"}) public void testDescribeMirrorsUsingFindCoordinatorRetriesWhenCoordinatorChanges(String errStr) throws Exception
      Throws:
      Exception
    • testDescribeMirrorsUsingFindCoordinatorFailsOnClusterAuthorization

      @Test public void testDescribeMirrorsUsingFindCoordinatorFailsOnClusterAuthorization() throws Exception
      Throws:
      Exception
    • testDescribeClusterLinksUsingFindCoordinatorRetriesWhenCoordinatorIsLoading

      @Test public void testDescribeClusterLinksUsingFindCoordinatorRetriesWhenCoordinatorIsLoading() throws Exception
      Throws:
      Exception
    • testDescribeClusterLinksUsingFindCoordinatorRelookUp

      @ParameterizedTest @ValueSource(strings={"COORDINATOR_NOT_AVAILABLE","NOT_COORDINATOR","NOT_CONTROLLER"}) public void testDescribeClusterLinksUsingFindCoordinatorRelookUp(String errorStr) throws Exception
      Throws:
      Exception
    • testDescribeClusterLinksToAllBrokersRetries

      @ParameterizedTest @ValueSource(strings={"COORDINATOR_LOAD_IN_PROGRESS","REQUEST_TIMED_OUT"}) public void testDescribeClusterLinksToAllBrokersRetries(String errorStr) throws Exception
      Throws:
      Exception
    • testDescribeClusterLinksToAllBrokersNonRetriableErrors

      @Test public void testDescribeClusterLinksToAllBrokersNonRetriableErrors() throws Exception
      Throws:
      Exception
    • testDescribeClusterLinksToAllBrokersDisabledReturnsDefaultMessage

      @Test public void testDescribeClusterLinksToAllBrokersDisabledReturnsDefaultMessage() throws Exception
      Throws:
      Exception
    • testDescribeClusterLinksTriesUsingCoordinatorsThenUsesController

      @Test public void testDescribeClusterLinksTriesUsingCoordinatorsThenUsesController() throws Exception
      Throws:
      Exception
    • testDescribeClusterLinksUsesFindCoordinatorThenUsesController

      @Test public void testDescribeClusterLinksUsesFindCoordinatorThenUsesController() throws Exception
      Throws:
      Exception
    • testDescribeClusterLinksFailsOnFindCoordinatorThenUsesController

      @Test public void testDescribeClusterLinksFailsOnFindCoordinatorThenUsesController() throws Exception
      Throws:
      Exception
    • testDescribeClusterLinksUsingFindCoordinatorFailsOnNonRetriableError

      @Test public void testDescribeClusterLinksUsingFindCoordinatorFailsOnNonRetriableError() throws Exception
      Throws:
      Exception
    • testDeleteClusterLinks

      @Test public void testDeleteClusterLinks() throws Exception
      Throws:
      Exception
    • testDeleteClusterLinksRetriableErrors

      @Test public void testDeleteClusterLinksRetriableErrors() throws Exception
      Throws:
      Exception
    • testDeleteClusterLinksNonRetriableErrors

      @Test public void testDeleteClusterLinksNonRetriableErrors() throws Exception
      Throws:
      Exception
    • testAlterMirrors

      @Test public void testAlterMirrors() throws Exception
      Throws:
      Exception
    • testAlterMirrorsVersion1

      @Test public void testAlterMirrorsVersion1() throws Exception
      Throws:
      Exception
    • testAlterMirrorsRetriableErrors

      @Test public void testAlterMirrorsRetriableErrors() throws Exception
      Throws:
      Exception
    • testAlterMirrorsNonRetriableErrors

      @Test public void testAlterMirrorsNonRetriableErrors() throws Exception
      Throws:
      Exception
    • testUpdateLicense

      @Test public void testUpdateLicense() throws Exception
      Throws:
      Exception
    • testUpdateLicenseDryRunPropagatesFlag

      @Test public void testUpdateLicenseDryRunPropagatesFlag() throws Exception
      Throws:
      Exception
    • testUpdateLicenseError

      @Test public void testUpdateLicenseError() throws Exception
      Throws:
      Exception
    • testGetLicenses

      @Test public void testGetLicenses() throws Exception
      Throws:
      Exception
    • testAlterBrokerHealth

      @ParameterizedTest @EnumSource(value=org.apache.kafka.clients.admin.BrokerComponent.class, names={"UNSPECIFIED","STORAGE","NETWORK"}) public void testAlterBrokerHealth(org.apache.kafka.clients.admin.BrokerComponent component) throws Exception
      Throws:
      Exception
    • testAlterBrokerHealthHandlesNotControllerException

      @Test public void testAlterBrokerHealthHandlesNotControllerException() throws Exception
      Throws:
      Exception
    • testAlterBrokerHealthExceptionHandling

      @Test public void testAlterBrokerHealthExceptionHandling() throws Exception
      Throws:
      Exception
    • testAlterBrokerHealthHandlesTimeoutException

      @Test public void testAlterBrokerHealthHandlesTimeoutException() throws Exception
      Throws:
      Exception
    • testDescribeBrokerHealth

      @ParameterizedTest @EnumSource(value=org.apache.kafka.clients.admin.BrokerComponent.class, names={"UNSPECIFIED","STORAGE","NETWORK"}) public void testDescribeBrokerHealth(org.apache.kafka.clients.admin.BrokerComponent component) throws Exception
      Throws:
      Exception
    • testDescribeNetwork

      @Test public void testDescribeNetwork() throws Exception
      Throws:
      Exception
    • testDescribeCellLoad

      @Test public void testDescribeCellLoad() throws Exception
      Throws:
      Exception
    • testDescribeBrokerHealthHandlesNotControllerException

      @Test public void testDescribeBrokerHealthHandlesNotControllerException() throws Exception
      Throws:
      Exception
    • testDescribeBrokerHealthHandlesClusterAuthorizationException

      @Test public void testDescribeBrokerHealthHandlesClusterAuthorizationException() throws Exception
      Throws:
      Exception
    • testDescribeBrokerHealthHandlesTimeoutException

      @Test public void testDescribeBrokerHealthHandlesTimeoutException() throws Exception
      Throws:
      Exception
    • testDescribeBrokerHealthOlderBrokerVersion

      @Test public void testDescribeBrokerHealthOlderBrokerVersion() throws Exception
      Throws:
      Exception
    • testInterceptor

      @Test public void testInterceptor() throws Exception
      Throws:
      Exception
    • testAdminBootstrapResolutionExceptionPropagated

      @Test public void testAdminBootstrapResolutionExceptionPropagated() throws Exception
      Throws:
      Exception
    • testAdminConstructorFailsWithConfigExceptionOnUnresolvableBootstrapWhenTimeoutZero

      @Test public void testAdminConstructorFailsWithConfigExceptionOnUnresolvableBootstrapWhenTimeoutZero()