FrankYang0529 commented on code in PR #15679:
URL: https://github.com/apache/kafka/pull/15679#discussion_r1557490373


##########
tools/src/test/java/org/apache/kafka/tools/consumer/group/DeleteOffsetsConsumerGroupCommandIntegrationTest.java:
##########
@@ -42,19 +48,40 @@
 import static org.junit.jupiter.api.Assertions.assertEquals;
 import static org.junit.jupiter.api.Assertions.assertNull;
 
-public class DeleteOffsetsConsumerGroupCommandIntegrationTest extends 
ConsumerGroupCommandTest {
+@Tag("integration")
+@ExtendWith(ClusterTestExtensions.class)
+public class DeleteOffsetsConsumerGroupCommandIntegrationTest {
+    private final ClusterInstance clusterInstance;
+    public static final String TOPIC = "foo";
+    public static final String GROUP = "test.group";
+
+    DeleteOffsetsConsumerGroupCommandIntegrationTest(ClusterInstance 
clusterInstance) {     // Constructor injections
+        this.clusterInstance = clusterInstance;
+    }
+
     String[] getArgs(String group, String topic) {
         return new String[] {
-            "--bootstrap-server", bootstrapServers(listenerName()),
+            "--bootstrap-server", clusterInstance.bootstrapServers(),
             "--delete-offsets",
             "--group", group,
             "--topic", topic
         };
     }
 
-    @ParameterizedTest
-    @ValueSource(strings = {"zk", "kraft"})
-    public void testDeleteOffsetsNonExistingGroup(String quorum) {
+    ConsumerGroupCommand.ConsumerGroupService getConsumerGroupService(String[] 
args) {
+        ConsumerGroupCommandOptions opts = 
ConsumerGroupCommandOptions.fromArgs(args);
+
+        return new ConsumerGroupCommand.ConsumerGroupService(
+                opts,
+                Collections.singletonMap(AdminClientConfig.RETRIES_CONFIG, 
Integer.toString(Integer.MAX_VALUE))
+        );
+    }
+
+    @ClusterTests({
+        @ClusterTest(clusterType = Type.ZK),

Review Comment:
   Yes, updated it. Thank you.



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

Reply via email to