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
The following commit(s) were added to refs/heads/camel-main by this push:
new 7eab0c0597 Revert "Disabled mdc because of CAMEL-22717"
7eab0c0597 is described below
commit 7eab0c05976695cd7ee646aef7402c8c5b6a9627
Author: Jiri Ondrusek <[email protected]>
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 ecd18bcca3..60ca54de01 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 {