abij commented on code in PR #11628:
URL: https://github.com/apache/nifi/pull/11628#discussion_r3961879833
##########
nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/test/java/org/apache/nifi/web/api/TestFlowResource.java:
##########
@@ -276,13 +276,13 @@ public void testGetFlowMetricsPrometheusAsJson() throws
IOException {
assertTrue(metrics.containsKey(ROOT_FIELD_NAME));
final List<Sample> registryList = metrics.get(ROOT_FIELD_NAME);
- assertEquals(13, registryList.size());
+ assertEquals(15, registryList.size());
Review Comment:
I've added asserts for the 6 cluster metrics, checking the first sample
matching the name.
And for clarification renamed the `getResult` into `getSampleCounts` because
its counting based on the keys.
--
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]