chia7712 commented on code in PR #16852: URL: https://github.com/apache/kafka/pull/16852#discussion_r1738595734
########## core/src/test/java/kafka/test/ClusterTestExtensionsTest.java: ########## @@ -236,6 +236,20 @@ public void testNotSupportedNewGroupProtocols(ClusterInstance clusterInstance) { Assertions.assertEquals(1, clusterInstance.supportedGroupProtocols().size()); } + + + @ClusterTest(types = {Type.ZK, Type.CO_KRAFT, Type.KRAFT}, brokers = 3) + public void testCreateTopic(ClusterInstance clusterInstance) throws Exception { + String topicName = "test"; + int partitions = 3; + short replicas = 3; + clusterInstance.createTopic(topicName, partitions, replicas); + + try (Admin admin = clusterInstance.createAdminClient()) { + Assertions.assertTrue(admin.listTopics().listings().get().stream().anyMatch(s -> s.name().equals(topicName))); Review Comment: Please check the partition and replica also -- 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