You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ji...@apache.org on 2024/01/12 08:18:04 UTC

(camel-quarkus) 04/10: fixed micrometer tests

This is an automated email from the ASF dual-hosted git repository.

jiriondrusek pushed a commit to branch camel-main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git

commit 608772e9feb1edb92edb0331988bf8e4155db1d6
Author: JiriOndrusek <on...@gmail.com>
AuthorDate: Wed Jan 3 15:50:34 2024 +0100

    fixed micrometer tests
---
 .../apache/camel/quarkus/component/micrometer/it/MicrometerTest.java  | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/integration-tests/micrometer/src/test/java/org/apache/camel/quarkus/component/micrometer/it/MicrometerTest.java b/integration-tests/micrometer/src/test/java/org/apache/camel/quarkus/component/micrometer/it/MicrometerTest.java
index ac9b1f66e4..af1b4f42a9 100644
--- a/integration-tests/micrometer/src/test/java/org/apache/camel/quarkus/component/micrometer/it/MicrometerTest.java
+++ b/integration-tests/micrometer/src/test/java/org/apache/camel/quarkus/component/micrometer/it/MicrometerTest.java
@@ -184,11 +184,13 @@ class MicrometerTest extends AbstractMicrometerTest {
         Map<String, Float> result = jsonPath.getMap(
                 "gauges.findAll { it.id.name =~ /routes/ && it.id.tags.find { it.customTag } }.collectEntries { [it.id.name, it.value] }");
 
-        assertEquals(result.size(), 2);
+        assertEquals(result.size(), 3);
         assertTrue(result.containsKey("camel.routes.running"));
         assertEquals(8.0f, result.get("camel.routes.running"));
         assertTrue(result.containsKey("camel.routes.added"));
         assertEquals(8.0f, result.get("camel.routes.added"));
+        assertTrue(result.containsKey("camel.routes.reloaded"));
+        assertEquals(0.0f, result.get("camel.routes.reloaded"));
     }
 
     @ParameterizedTest