dajac commented on code in PR #19904: URL: https://github.com/apache/kafka/pull/19904#discussion_r2140324934
########## core/src/test/scala/integration/kafka/api/AuthorizerIntegrationTest.scala: ########## @@ -3076,6 +3076,29 @@ class AuthorizerIntegrationTest extends AbstractAuthorizerIntegrationTest { sendAndReceiveRegexHeartbeat(response, listenerName, None) } + @Test + def testConsumerGroupHeartbeatWithRegexWithTopicDescribeAclAddedAndRemoved(): Unit = { + createTopicWithBrokerPrincipal(topic) + val allowAllOpsAcl = new AccessControlEntry(clientPrincipalString, WILDCARD_HOST, ALL, ALLOW) + addAndVerifyAcls(Set(allowAllOpsAcl), groupResource) + + val memberId = Uuid.randomUuid.toString; + var response = sendAndReceiveFirstRegexHeartbeat(memberId, listenerName) + TestUtils.tryUntilNoAssertionError() { + response = sendAndReceiveRegexHeartbeat(response, listenerName, Some(0), true) + } + + addAndVerifyAcls(topicDescribeAcl(topicResource), topicResource) + TestUtils.tryUntilNoAssertionError(waitTime = 75000) { Review Comment: Since it is an internal config, we can reduce it to 10s. -- 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