chia7712 commented on code in PR #19635:
URL: https://github.com/apache/kafka/pull/19635#discussion_r2074817895
##########
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:
@FrankYang0529 could you please add the test case for the existent topic?
Additionally, it would be useful to add case of existent topic for fetch RPC
too.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]