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

Open
wants to merge 5 commits into
base: trunk
Choose a base branch
from

Conversation

frankvicky
Copy link
Collaborator

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
Contributor

@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
Contributor

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
Contributor

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

@chia7712
Copy link
Contributor

@frankvicky please fix the conflicts

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