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 151b460730dc2b0a78f743110a46ffb567bf069b
Author: JiriOndrusek <ondrusek.j...@gmail.com>
AuthorDate: Tue Mar 12 12:58:12 2024 +0100

    Micrometer logging for CI debugging purposes
---
 .../apache/camel/quarkus/component/micrometer/it/MicrometerTest.java | 5 ++++-
 1 file changed, 4 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 af1b4f42a9..66320eb929 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
@@ -29,6 +29,7 @@ import io.quarkus.test.junit.DisabledOnIntegrationTest;
 import io.quarkus.test.junit.QuarkusTest;
 import io.restassured.RestAssured;
 import io.restassured.path.json.JsonPath;
+import org.jboss.logging.Logger;
 import org.junit.jupiter.api.Test;
 import org.junit.jupiter.params.ParameterizedTest;
 import org.junit.jupiter.params.provider.ValueSource;
@@ -39,7 +40,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
 
 @QuarkusTest
 class MicrometerTest extends AbstractMicrometerTest {
-
+    private static final Logger LOG = Logger.getLogger(MicrometerTest.class);
     @Test
     public void testMicrometerMetricsCounter() throws Exception {
         RestAssured.get("/micrometer/counter/0")
@@ -183,6 +184,8 @@ class MicrometerTest extends AbstractMicrometerTest {
         //extract required values
         Map<String, Float> result = jsonPath.getMap(
                 "gauges.findAll { it.id.name =~ /routes/ && it.id.tags.find { 
it.customTag } }.collectEntries { [it.id.name, it.value] }");
+        //todo remove for debugging purposes
+        LOG.info("Dumped json is " + result);
 
         assertEquals(result.size(), 3);
         assertTrue(result.containsKey("camel.routes.running"));

Reply via email to