Claus Ibsen created CAMEL-25780:
-----------------------------------
Summary: camel-aws2-eventbridge - EventbridgePutEventsIT sends a
detail that is not JSON, which floci 2.3.0 refuses
Key: CAMEL-25780
URL: https://issues.apache.org/jira/browse/CAMEL-25780
Project: Camel
Issue Type: Test
Components: camel-aws2
Reporter: Claus Ibsen
Fix For: 4.24.0
Since the test-infra AWS container was upgraded to floci 2.3.0 (#28006),
EventbridgePutEventsIT fails with "expected: not <null>" on the eventId of the
PutEvents response. Every PR whose CI tests camel-aws2-eventbridge fails on it
(seen on PR 28070 and PR 28074).
Floci 2.3.0 now validates the event detail as AWS does. The test sends the
plain string "Test Event" as the body, which the producer uses as the Detail of
the entry, and floci answers:
{code}
{"FailedEntryCount":1,"Entries":[{"ErrorCode":"MalformedDetail","ErrorMessage":"The
JSON provided is not valid."}]}
{code}
floci 2.2.0 accepted it. AWS documents Detail as "A valid JSON object"
(https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_PutEventsRequestEntry.html),
so floci is right and the test is wrong. The other eventbridge ITs already
send JSON.
Fix: send a JSON body in EventbridgePutEventsIT. All eventbridge ITs pass on
floci 2.3.0 with it.
_Claude Code on behalf of Claus Ibsen_
--
This message was sent by Atlassian Jira
(v8.20.10#820010)