This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 57b17bdd2210 CAMEL-25928: camel-jbang - AI tools: the lenient repair
tests set a body before the unmarshal
57b17bdd2210 is described below
commit 57b17bdd22104b2da5774e36f9db444a4cc9dda9
Author: Claus Ibsen <[email protected]>
AuthorDate: Mon Oct 26 22:09:21 2026 +0100
CAMEL-25928: camel-jbang - AI tools: the lenient repair tests set a body
before the unmarshal
Since the body type checks report an unmarshal that is the first step to
read
the body of a timer route (#28500), the repaired content of two tests got a
new
problem, and the write was refused. The tests are about YAML repairs, so
their
routes now set a body before the unmarshal.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Signed-off-by: Claus Ibsen <[email protected]>
---
.../camel/dsl/jbang/core/commands/ai/AuthoringToolsLenientTest.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git
a/dsl/camel-jbang/camel-jbang-core/src/test/java/org/apache/camel/dsl/jbang/core/commands/ai/AuthoringToolsLenientTest.java
b/dsl/camel-jbang/camel-jbang-core/src/test/java/org/apache/camel/dsl/jbang/core/commands/ai/AuthoringToolsLenientTest.java
index c3e0af46da87..7ed31de5a0b3 100644
---
a/dsl/camel-jbang/camel-jbang-core/src/test/java/org/apache/camel/dsl/jbang/core/commands/ai/AuthoringToolsLenientTest.java
+++
b/dsl/camel-jbang/camel-jbang-core/src/test/java/org/apache/camel/dsl/jbang/core/commands/ai/AuthoringToolsLenientTest.java
@@ -94,6 +94,8 @@ class AuthoringToolsLenientTest {
from:
uri: timer:x
steps:
+ - setBody:
+ constant: "{}"
- unmarshal:
json:
library: jackson
@@ -149,6 +151,8 @@ class AuthoringToolsLenientTest {
- log:
level: WARN
message: "x"
+ - setBody:
+ constant: "{}"
- unmarshal:
jackson: {}
""");