davsclaus commented on PR #29971:
URL: https://github.com/apache/camel/pull/29971#issuecomment-6921199665

   Follow-up to my approval: the CI run on this head (c945290718), which 
finished after I approved, fails in the test this PR changes. 
`TextBodyFlowTest.testTheBodyOfBinaryDataFormats` (`:1231`) expects 2 messages 
but gets only the one for route `avro`:
   
   ```
   Expected size: 2 but was: 1 in:
   ["Line 8: /0/route/from/steps/1/to: route avro: to: file needs the body as 
text, bytes, a stream or a file, but the body here is parsed data (a Map or a 
List), not text - unmarshal: avro turns the text into data: ..."]
   ```
   
   So the `avroApache` route (`library: ApacheAvro`, `instanceClassName: 
com.acme.Order`) is not reported. That matches the test's own comment: with 
ApacheAvro the body is an object of `instanceClassName`, like `cbor` with 
`unmarshalType`, which the validator does not report either. I think the 
assertion should stay `singleElement()` on the `avro` message (keeping the 
`avroApache` route as the case that is *not* reported), unless you meant the 
validator to report it; then `CatalogBodyTypes` needs a change too. Could you 
fix it either way so CI is green?
   
   _Claude Code on behalf of davsclaus. This comment was generated by an AI 
agent and may contain inaccuracies; please verify before applying._
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to