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

davsclaus pushed a commit to branch CAMEL-26140-vertx-http-tests
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 5bd1eb73c46f38f20f643ecf7bbb433f8e81acde
Author: Claus Ibsen <[email protected]>
AuthorDate: Tue Nov 3 09:09:08 2026 +0100

    CAMEL-26140: camel-vertx-http - the undertow test server routes reply with 
an empty body
    
    Since CAMEL-26140 the undertow consumer answers 500 to a Map or an object
    reply body, instead of an empty 200 with a WARN. The test server routes of
    the form and serialized tests ended with the form Map or the deserialized
    bean as their body, so five tests failed. They now reply with an empty body.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    Signed-off-by: Claus Ibsen <[email protected]>
---
 .../camel/component/vertx/http/VertxHttpRequestBodyTypesTest.java     | 4 +++-
 .../camel/component/vertx/http/VertxHttpRequestWithPayloadTest.java   | 4 +++-
 .../camel/component/vertx/http/VertxHttpSerializedBodyTest.java       | 4 +++-
 3 files changed, 9 insertions(+), 3 deletions(-)

diff --git 
a/components/camel-vertx/camel-vertx-http/src/test/java/org/apache/camel/component/vertx/http/VertxHttpRequestBodyTypesTest.java
 
b/components/camel-vertx/camel-vertx-http/src/test/java/org/apache/camel/component/vertx/http/VertxHttpRequestBodyTypesTest.java
index 745bd2393b01..460776066f70 100644
--- 
a/components/camel-vertx/camel-vertx-http/src/test/java/org/apache/camel/component/vertx/http/VertxHttpRequestBodyTypesTest.java
+++ 
b/components/camel-vertx/camel-vertx-http/src/test/java/org/apache/camel/component/vertx/http/VertxHttpRequestBodyTypesTest.java
@@ -91,7 +91,9 @@ public class VertxHttpRequestBodyTypesTest extends 
VertxHttpTestSupport {
                         .setBody(simple("Got body: ${body}"));
 
                 from(getTestServerUri() + "/form")
-                        .to("mock:form");
+                        .to("mock:form")
+                        // the undertow consumer cannot write a Map or an 
object as the reply body
+                        .setBody(constant(""));
             }
         };
     }
diff --git 
a/components/camel-vertx/camel-vertx-http/src/test/java/org/apache/camel/component/vertx/http/VertxHttpRequestWithPayloadTest.java
 
b/components/camel-vertx/camel-vertx-http/src/test/java/org/apache/camel/component/vertx/http/VertxHttpRequestWithPayloadTest.java
index 97fc2896a254..d8a5c78e3fbc 100644
--- 
a/components/camel-vertx/camel-vertx-http/src/test/java/org/apache/camel/component/vertx/http/VertxHttpRequestWithPayloadTest.java
+++ 
b/components/camel-vertx/camel-vertx-http/src/test/java/org/apache/camel/component/vertx/http/VertxHttpRequestWithPayloadTest.java
@@ -160,7 +160,9 @@ public class VertxHttpRequestWithPayloadTest extends 
VertxHttpTestSupport {
                                 exchange.toString();
                             }
                         })
-                        .to("mock:result");
+                        .to("mock:result")
+                        // the undertow consumer cannot write a Map or an 
object as the reply body
+                        .setBody(constant(""));
 
                 from(getTestServerUri() + "/upload")
                         .process(exchange -> {
diff --git 
a/components/camel-vertx/camel-vertx-http/src/test/java/org/apache/camel/component/vertx/http/VertxHttpSerializedBodyTest.java
 
b/components/camel-vertx/camel-vertx-http/src/test/java/org/apache/camel/component/vertx/http/VertxHttpSerializedBodyTest.java
index 1ec3f621e031..3cda8dca3c2e 100644
--- 
a/components/camel-vertx/camel-vertx-http/src/test/java/org/apache/camel/component/vertx/http/VertxHttpSerializedBodyTest.java
+++ 
b/components/camel-vertx/camel-vertx-http/src/test/java/org/apache/camel/component/vertx/http/VertxHttpSerializedBodyTest.java
@@ -128,7 +128,9 @@ public class VertxHttpSerializedBodyTest extends 
VertxHttpTestSupport {
                                 }
                             }
                         })
-                        .to("mock:result");
+                        .to("mock:result")
+                        // the undertow consumer cannot write a Map or an 
object as the reply body
+                        .setBody(constant(""));
 
                 from(getTestServerUri() + "/deserialized")
                         .process(new Processor() {

Reply via email to