riedelmax commented on code in PR #14124:
URL: https://github.com/apache/kafka/pull/14124#discussion_r1318165515


##########
core/src/test/scala/unit/kafka/server/KafkaApisTest.scala:
##########
@@ -6191,4 +6191,19 @@ class KafkaApisTest {
     val response = 
verifyNoThrottling[ConsumerGroupHeartbeatResponse](requestChannelRequest)
     assertEquals(Errors.GROUP_AUTHORIZATION_FAILED.code, 
response.data.errorCode)
   }
+
+  @Test
+  def testConsumerGroupDescribeReturnsUnsupportedVersion(): Unit = {
+    // Arrange
+    val consumerGroupDescribeRequestData = new 
ConsumerGroupDescribeRequestData()
+    consumerGroupDescribeRequestData.groupIds.add("group0")
+    val requestChannelRequest = buildRequest(new 
ConsumerGroupDescribeRequest.Builder(consumerGroupDescribeRequestData, 
true).build())
+
+    // Act
+    createKafkaApis().handle(requestChannelRequest, RequestLocal.NoCaching)
+    val response = 
verifyNoThrottling[ConsumerGroupDescribeResponse](requestChannelRequest)
+
+    // Assert
+    assertEquals(Errors.UNSUPPORTED_VERSION.code, 
response.data.groups.get(0).errorCode)

Review Comment:
   I just changed it now, so I won't forget



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