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 d0a4758ab404 CAMEL-25780: camel-aws2-eventbridge -
EventbridgePutEventsIT sends a JSON detail
d0a4758ab404 is described below
commit d0a4758ab4044ae206bf03704b2bfb5cba8a04f1
Author: Claus Ibsen <[email protected]>
AuthorDate: Mon Oct 19 09:37:33 2026 +0200
CAMEL-25780: camel-aws2-eventbridge - EventbridgePutEventsIT sends a JSON
detail
The detail of an event must be a valid JSON object. floci 2.3.0 checks it
as AWS does and refuses the plain
string the test sent with MalformedDetail, so the response had no event id.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Signed-off-by: Claus Ibsen <[email protected]>
---
.../component/aws2/eventbridge/localstack/EventbridgePutEventsIT.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/components/camel-aws/camel-aws2-eventbridge/src/test/java/org/apache/camel/component/aws2/eventbridge/localstack/EventbridgePutEventsIT.java
b/components/camel-aws/camel-aws2-eventbridge/src/test/java/org/apache/camel/component/aws2/eventbridge/localstack/EventbridgePutEventsIT.java
index abe8d6848a64..edf7202b2197 100644
---
a/components/camel-aws/camel-aws2-eventbridge/src/test/java/org/apache/camel/component/aws2/eventbridge/localstack/EventbridgePutEventsIT.java
+++
b/components/camel-aws/camel-aws2-eventbridge/src/test/java/org/apache/camel/component/aws2/eventbridge/localstack/EventbridgePutEventsIT.java
@@ -47,7 +47,7 @@ public class EventbridgePutEventsIT extends
Aws2EventbridgeBase {
"arn:aws:sqs:eu-west-1:780410022472:camel-connector-test");
exchange.getIn().setHeader(EventbridgeConstants.EVENT_SOURCE,
"com.pippo");
exchange.getIn().setHeader(EventbridgeConstants.EVENT_DETAIL_TYPE, "peppe");
- exchange.getIn().setBody("Test Event");
+ exchange.getIn().setBody("{\"message\":\"Test Event\"}");
}
});
MockEndpoint.assertIsSatisfied(context);