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


##########
core/src/test/scala/integration/kafka/api/AuthorizerIntegrationTest.scala:
##########
@@ -924,6 +924,33 @@ class AuthorizerIntegrationTest extends 
AbstractAuthorizerIntegrationTest {
     sendRequests(requestKeyToRequest, false, topicNames)
   }
 
+  @Test
+  def 
testAuthorizationWithTopicNotExistingForProduceReqeustVersionLessThan13(): Unit 
= {
+    for (version <- ApiKeys.PRODUCE.oldestVersion to 12) {
+      val request = requests.ProduceRequest.builder(new ProduceRequestData()
+          .setTopicData(new ProduceRequestData.TopicProduceDataCollection(
+            util.List.of(new ProduceRequestData.TopicProduceData()
+                .setName(tp.topic())

Review Comment:
   Hi @junrao, This case follows `testAuthorizationWithTopicNotExisting`. In 
`AuthorizerIntegrationTest`, if a case needs a existing topic like case 
`testAuthorizationWithTopicExisting`, it needs to call 
`sendRequests(mutable.Map(ApiKeys.CREATE_TOPICS -> createTopicsRequest))`.



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