-
Notifications
You must be signed in to change notification settings - Fork 15.4k
Remove dependencies on deprecated --zookeeper command flags in junit tests #8527
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -255,7 +255,7 @@ class ReassignPartitionsCommandArgsTest { | |
| @Test | ||
| def shouldNotAllowBrokersListWithVerifyOption(): Unit = { | ||
| val args = Array( | ||
| "--zookeeper", "localhost:1234", | ||
| "--bootstrap-server", "localhost:1234", | ||
| "--verify", | ||
| "--broker-list", "100,101", | ||
| "--reassignment-json-file", "myfile.json") | ||
|
|
@@ -265,7 +265,7 @@ class ReassignPartitionsCommandArgsTest { | |
| @Test | ||
| def shouldNotAllowThrottleWithVerifyOption(): Unit = { | ||
| val args = Array( | ||
| "--zookeeper", "localhost:1234", | ||
| "--bootstrap-server", "localhost:1234", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. keep this change
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ok |
||
| "--verify", | ||
| "--throttle", "100", | ||
| "--reassignment-json-file", "myfile.json") | ||
|
|
@@ -275,7 +275,7 @@ class ReassignPartitionsCommandArgsTest { | |
| @Test | ||
| def shouldNotAllowTopicsOptionWithVerify(): Unit = { | ||
| val args = Array( | ||
| "--zookeeper", "localhost:1234", | ||
| "--bootstrap-server", "localhost:1234", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. keep this change
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ok |
||
| "--verify", | ||
| "--reassignment-json-file", "myfile.json", | ||
| "--topics-to-move-json-file", "myfile.json") | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -293,13 +293,6 @@ class TopicCommandWithAdminClientTest extends KafkaServerTestHarness with Loggin | |
| } | ||
| } | ||
|
|
||
| @Test | ||
| def testCreateWithUnspecifiedReplicationFactorAndPartitionsWithZkClient(): Unit = { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's weird that this is even in this file. This should be moved to
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes. If we are ignoring the tests instead of deleting the tests, we should move this one into TopicCommandWithZKClientTest.scala |
||
| assertExitCode(1, () => | ||
| new TopicCommandOptions(Array("--create", "--zookeeper", "zk", "--topic", testTopicName)).checkArgs() | ||
| ) | ||
| } | ||
|
|
||
| @Test | ||
| def testInvalidTopicLevelConfig(): Unit = { | ||
| val createOpts = new TopicCommandOptions( | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a good change since the test is not specifically testing the legacy mode (so it should use the new mode) Keep this one
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok