You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by gi...@apache.org on 2025/12/02 02:02:06 UTC
(camel-quarkus) 14/17: Revert "Disabled mdc because of CAMEL-22717"
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 3adc9e8191a74b3e4567e9dfbe521a0b227f6f13
Author: Jiri Ondrusek <on...@gmail.com>
AuthorDate: Tue Nov 25 17:02:41 2025 +0100
Revert "Disabled mdc because of CAMEL-22717"
This reverts commit ab84245579d58a8f8edf4e5a18d5e57e633a7732.
---
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, 2 insertions(+), 14 deletions(-)
diff --git a/integration-tests/mdc/pom.xml b/integration-tests/mdc/pom.xml
index 243fad411e..ab95f4f84b 100644
--- a/integration-tests/mdc/pom.xml
+++ b/integration-tests/mdc/pom.xml
@@ -58,7 +58,6 @@
</dependencies>
<profiles>
- <!-- https://github.com/apache/camel-quarkus/issues/8003
<profile>
<id>native</id>
<activation>
@@ -86,7 +85,6 @@
</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 e6285463fd..61ad1a8591 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,13 +23,10 @@ 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;
@@ -38,9 +35,6 @@ public class MdcResource {
@GET
@Produces(MediaType.TEXT_PLAIN)
public String traceRoute() {
- LOG.info("trace route");
- var retVal = producerTemplate.requestBody("direct:start", null, String.class);
- LOG.info("returned: " + retVal);
- return retVal;
+ return producerTemplate.requestBody("direct:start", null, String.class);
}
}
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 b7b19a2e45..01633dc184 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,11 +25,9 @@ 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("body: ${body}!");
+ .log("done!");
}
}
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 dc7e4ec678..017c50f6ed 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,12 +18,10 @@ 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 {