davsclaus opened a new pull request, #3278:
URL: https://github.com/apache/camel-kamelets/pull/3278

   Part of #3117: default data types on five more Kamelets whose body is fixed. 
Their Citrus tests came in #3264 and #3271; this PR updates what they expect.
   
   | Kamelet | `in` | `out` | What changes |
   |---|---|---|---|
   | `dns-dig-action` | | `text` | The body stays text, and `Content-Type` is 
set to `text/plain` |
   | `dns-ip-action` | | `text` | The same |
   | `dns-lookup-action` | | `json` | The JSON array is `byte[]` instead of a 
stream. `Content-Type` is `application/json` as before |
   | `nominatim-geocode-action` | | `json` | The same |
   | `ssh-sink` | `text` | | The command is read as text, and `Content-Type: 
text/plain` stays on the message after the sink |
   
   None of the actions gives a null body: a name that is not found fails the 
message, so the `text` transformer always has text. Checked with `camel run`.
   
   ### No default, and why
   - **The file sinks** (`ftp-`, `ftps-`, `sftp-`, `scp-sink`), `ceph-sink` and 
`minio-sink` write any body. `binary` would also read a large file or stream 
fully into memory first.
   - **`exec-sink`, `mail-sink`, `splunk-hec-sink`:** the body is not fixed.
   - **`graphql-sink`:** with `queryFile`, a `Map` body is the variables of the 
query.
   - **`ogcapi-features-action`:** `json` would replace the 
`application/geo+json` of the server.
   - **The PQC actions:** they give Java objects or keep the body.
   - **No source defaults**, because of the Camel bug noted on #3117.
   
   ### Upgrade note
   For #3190, under the data types, when this is merged:
   - `dns-dig-action` and `dns-ip-action` set `Content-Type: text/plain`.
   - `dns-lookup-action` and `nominatim-geocode-action` give `byte[]`.
   - `ssh-sink` leaves `Content-Type: text/plain` on the message.
   
   ### Tests
   - **Citrus:** `CommonIT#dns+geo` and `FileIT#ssh`: 10 of 10 pass. The 
`dns-dig-action`, `nominatim-geocode-action` and `ssh-sink` tests expect the 
new values.
   - **Build:** `./mvnw clean install` from the root passes, run twice.
   
   _Claude Code on behalf of Claus Ibsen_
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


-- 
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