Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KAFKA-17526: make ConfigCommandIntegrationTest.java test use correct arguments in testing alias #17201

Merged
merged 8 commits into from
Oct 22, 2024

Conversation

frankvicky
Copy link
Contributor

JIRA: KAFKA-17526

This PR reviews existing tests and refactors the validation to ensure the command is generated correctly.

Committer Checklist (excluded from commit message)

  • Verify design and implementation
  • Verify test coverage and CI build status
  • Verify documentation (including upgrade notes)

Copy link
Member

@chia7712 chia7712 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@frankvicky thanks for your refactor

@@ -324,11 +324,13 @@ public void testDynamicBrokerConfigUpdateUsingKraft() throws Exception {

@ClusterTest(types = {Type.KRAFT, Type.CO_KRAFT})
public void testGroupConfigUpdateUsingKraft() throws Exception {
alterOpts = asList("--bootstrap-server", cluster.bootstrapServers(), "--entity-type", "groups", "--alter");
alterOpts = Stream.concat(entityOp(Optional.of(defaultGroupName)).stream(),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we make alterOpts a local variable? it is a bit chaos that alterOpts can be modified by any method.

@github-actions github-actions bot added core Kafka Broker tests Test fixes (including flaky tests) labels Sep 26, 2024
@chia7712
Copy link
Member

@frankvicky Could you please rebase code to include recent fix?

@chia7712
Copy link
Member

@frankvicky please fix the conflicts

@frankvicky
Copy link
Contributor Author

Hi @chia7712
I have rebased and fixed the conflicts, PTAL 😺

@chia7712 chia7712 merged commit 9cbb3f0 into apache:trunk Oct 22, 2024
6 checks passed
abhishekgiri23 pushed a commit to abhishekgiri23/kafka that referenced this pull request Nov 2, 2024
chiacyu pushed a commit to chiacyu/kafka that referenced this pull request Nov 30, 2024
tedyu pushed a commit to tedyu/kafka that referenced this pull request Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci-approved core Kafka Broker tests Test fixes (including flaky tests)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants