Skip to content

MINOR: Clean up OffsetCommit request/response validation tests in KafkaApisTest#22250

Merged
dajac merged 1 commit into
apache:trunkfrom
dajac:MINOR-KafkaApisTest-OffsetCommit
May 11, 2026
Merged

MINOR: Clean up OffsetCommit request/response validation tests in KafkaApisTest#22250
dajac merged 1 commit into
apache:trunkfrom
dajac:MINOR-KafkaApisTest-OffsetCommit

Conversation

@dajac
Copy link
Copy Markdown
Member

@dajac dajac commented May 10, 2026

  • Consolidate
    testHandleOffsetCommitRequestTopicsAndPartitionsValidation
    and
    testHandleOffsetCommitRequestTopicsAndPartitionsValidationWithTopicIds
    into a single @ParameterizedTest @ApiKeyVersionsSource(apiKey = ApiKeys.OFFSET_COMMIT)
    method that covers every API version, mirroring the shape of
    testHandleTxnOffsetCommitRequestTopicsAndPartitionsValidation.
  • Drop the unnecessary version gating on topicId/name in the
    source request data of testHandleOffsetCommitRequest and
    testHandleOffsetCommitRequestFutureFailed. Both fields can be set
    unconditionally; the wire schema filters at serialization time and
    the builder accepts requests that have both fields populated.

Reviewers: Sean Quah squah@confluent.io

…kaApisTest

- Consolidate `testHandleOffsetCommitRequestTopicsAndPartitionsValidation`
  and `testHandleOffsetCommitRequestTopicsAndPartitionsValidationWithTopicIds`
  into a single `@ParameterizedTest @ApiKeyVersionsSource(apiKey = ApiKeys.OFFSET_COMMIT)`
  method that covers every API version, mirroring the shape of
  `testHandleTxnOffsetCommitRequestTopicsAndPartitionsValidation`.
- Drop the unnecessary version gating on `topicId`/`name` in the
  source request data of `testHandleOffsetCommitRequest` and
  `testHandleOffsetCommitRequestFutureFailed`. Both fields can be set
  unconditionally; the wire schema filters at serialization time and
  the builder accepts requests that have both fields populated.
@github-actions github-actions Bot added core Kafka Broker tests Test fixes (including flaky tests) labels May 10, 2026
@dajac dajac merged commit c717e6e into apache:trunk May 11, 2026
33 of 35 checks passed
@dajac dajac deleted the MINOR-KafkaApisTest-OffsetCommit branch May 11, 2026 07:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Kafka Broker tests Test fixes (including flaky tests)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants