This is an automated email from the ASF dual-hosted git repository. github-bot pushed a commit to branch camel-main in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
commit f8396d957518511977277609c9e2a04cea3f7e18 Author: Jiri Ondrusek <[email protected]> AuthorDate: Mon Nov 24 09:41:38 2025 +0100 Disabled mdc because of CAMEL-22717 --- integration-tests/mdc/pom.xml | 2 ++ .../org/apache/camel/quarkus/component/mdc/it/MdcResource.java | 8 +++++++- .../apache/camel/quarkus/component/mdc/it/MdcRouteBuilder.java | 4 +++- .../java/org/apache/camel/quarkus/component/mdc/it/MdcTest.java | 2 ++ 4 files changed, 14 insertions(+), 2 deletions(-) diff --git a/integration-tests/mdc/pom.xml b/integration-tests/mdc/pom.xml index ab95f4f84b..243fad411e 100644 --- a/integration-tests/mdc/pom.xml +++ b/integration-tests/mdc/pom.xml @@ -58,6 +58,7 @@ </dependencies> <profiles> + <!-- https://github.com/apache/camel-quarkus/issues/8003 <profile> <id>native</id> <activation> @@ -85,6 +86,7 @@ </plugins> </build> </profile> + --> <profile> <id>virtualDependencies</id> <activation> diff --git a/integration-tests/mdc/src/main/java/org/apache/camel/quarkus/component/mdc/it/MdcResource.java b/integration-tests/mdc/src/main/java/org/apache/camel/quarkus/component/mdc/it/MdcResource.java index 61ad1a8591..e6285463fd 100644 --- a/integration-tests/mdc/src/main/java/org/apache/camel/quarkus/component/mdc/it/MdcResource.java +++ b/integration-tests/mdc/src/main/java/org/apache/camel/quarkus/component/mdc/it/MdcResource.java @@ -23,10 +23,13 @@ import jakarta.ws.rs.Path; import jakarta.ws.rs.Produces; import jakarta.ws.rs.core.MediaType; import org.apache.camel.ProducerTemplate; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; @Path("/mdc") @ApplicationScoped public class MdcResource { + private final Logger LOG = LoggerFactory.getLogger(MdcResource.class); @Inject ProducerTemplate producerTemplate; @@ -35,6 +38,9 @@ public class MdcResource { @GET @Produces(MediaType.TEXT_PLAIN) public String traceRoute() { - return producerTemplate.requestBody("direct:start", null, String.class); + LOG.info("trace route"); + var retVal = producerTemplate.requestBody("direct:start", null, String.class); + LOG.info("returned: " + retVal); + return retVal; } } diff --git a/integration-tests/mdc/src/main/java/org/apache/camel/quarkus/component/mdc/it/MdcRouteBuilder.java b/integration-tests/mdc/src/main/java/org/apache/camel/quarkus/component/mdc/it/MdcRouteBuilder.java index 01633dc184..b7b19a2e45 100644 --- a/integration-tests/mdc/src/main/java/org/apache/camel/quarkus/component/mdc/it/MdcRouteBuilder.java +++ b/integration-tests/mdc/src/main/java/org/apache/camel/quarkus/component/mdc/it/MdcRouteBuilder.java @@ -25,9 +25,11 @@ public class MdcRouteBuilder extends RouteBuilder { public void configure() throws Exception { from("direct:start") .setHeader("myHeader", constant("HELO")) + .log("header: ${headers.myHeader}") .process(exchange -> { exchange.getIn().setBody(MDC.get("myHeader")); }) - .log("done!"); + .log("done!") + .log("body: ${body}!"); } } diff --git a/integration-tests/mdc/src/test/java/org/apache/camel/quarkus/component/mdc/it/MdcTest.java b/integration-tests/mdc/src/test/java/org/apache/camel/quarkus/component/mdc/it/MdcTest.java index 017c50f6ed..dc7e4ec678 100644 --- a/integration-tests/mdc/src/test/java/org/apache/camel/quarkus/component/mdc/it/MdcTest.java +++ b/integration-tests/mdc/src/test/java/org/apache/camel/quarkus/component/mdc/it/MdcTest.java @@ -18,10 +18,12 @@ package org.apache.camel.quarkus.component.mdc.it; import io.quarkus.test.junit.QuarkusTest; import io.restassured.RestAssured; +import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; import static org.hamcrest.CoreMatchers.equalTo; +@Disabled //https://github.com/apache/camel-quarkus/issues/8003 @QuarkusTest class MdcTest {
