showuon commented on a change in pull request #10811: URL: https://github.com/apache/kafka/pull/10811#discussion_r661880016
########## File path: core/src/test/scala/unit/kafka/admin/ConfigCommandTest.scala ########## @@ -60,6 +60,39 @@ class ConfigCommandTest extends ZooKeeperTestHarness with Logging { "--add-config", "security.inter.broker.protocol=PLAINTEXT")) } + @Test + def shouldExitWithNonZeroStatusOnZkCommandWithTopicsEntity(): Unit = { + assertNonZeroStatusExit(Array( + "--zookeeper", zkConnect, + "--entity-type", "topics", + "--describe")) + } + + @Test + def shouldExitWithNonZeroStatusOnZkCommandWithClientsEntity(): Unit = { + assertNonZeroStatusExit(Array( + "--zookeeper", zkConnect, + "--entity-type", "clients", + "--describe")) + } + + @Test + def shouldExitWithNonZeroStatusOnZkCommandWithIpsEntity(): Unit = { + assertNonZeroStatusExit(Array( + "--zookeeper", zkConnect, + "--entity-type", "ips", + "--describe")) + } + + @Test + def shouldExitWithNonZeroStatusAlterUserQuotaWithoutEntityName(): Unit = { Review comment: Aha, I know what you mean now. Let me update it. Thanks 😊 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org