frankvicky commented on code in PR #17549: URL: https://github.com/apache/kafka/pull/17549#discussion_r1820671218
########## core/src/test/scala/unit/kafka/server/ConsumerGroupHeartbeatRequestTest.scala: ########## @@ -36,54 +35,68 @@ import scala.collection.Map import scala.jdk.CollectionConverters._ @ExtendWith(value = Array(classOf[ClusterTestExtensions])) -class ConsumerGroupHeartbeatRequestTest(cluster: ClusterInstance) { - - @ClusterTest( +@ClusterTestDefaults( types = Array(Type.KRAFT), serverProperties = Array( - new ClusterConfigProperty(key = GroupCoordinatorConfig.GROUP_COORDINATOR_REBALANCE_PROTOCOLS_CONFIG, value = "classic"), new ClusterConfigProperty(key = GroupCoordinatorConfig.OFFSETS_TOPIC_PARTITIONS_CONFIG, value = "1"), new ClusterConfigProperty(key = GroupCoordinatorConfig.OFFSETS_TOPIC_REPLICATION_FACTOR_CONFIG, value = "1") ) +) +class ConsumerGroupHeartbeatRequestTest(cluster: ClusterInstance) { + + @ClusterTests(value = Array( + new ClusterTest( + serverProperties = Array(new ClusterConfigProperty(key = GroupCoordinatorConfig.GROUP_COORDINATOR_REBALANCE_PROTOCOLS_CONFIG, value = "classic")), + tags = Array("0") + ), + new ClusterTest( + serverProperties = Array(new ClusterConfigProperty(key = GroupCoordinatorConfig.GROUP_COORDINATOR_REBALANCE_PROTOCOLS_CONFIG, value = "classic")), + tags = Array("1") + ) + ) ) Review Comment: I’m currently testing different versions of `ConsumerGroupHeartbeatRequest` using the `tags` property as a workaround. It feels quite clunky, but I haven’t found a way to do parameterized tests within the cluster test context. 🥵 -- 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