chia7712 commented on code in PR #23521:
URL: https://github.com/apache/kafka/pull/23521#discussion_r4060952543


##########
metadata/src/test/java/org/apache/kafka/metadata/authorizer/StandardAuthorizerTest.java:
##########
@@ -694,6 +695,23 @@ public void testAuthorizerMetrics() throws Exception {
         assertEquals(5, metrics.metrics().size());
     }
 
+    @Test
+    public void testAclsTotalCountMetric() throws Exception {
+        StandardAuthorizer authorizer = 
createAndInitializeStandardAuthorizer();
+        KafkaMetric aclsTotalCount = 
metrics.metric(metrics.metricName("acls-total-count", "plugins", "", Map.of()));

Review Comment:
   I've opened https://issues.apache.org/jira/browse/KAFKA-21135 to enhance the 
test coverage for rate metrics



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

Reply via email to