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-kamelets.git
The following commit(s) were added to refs/heads/main by this push:
new f80337f40 chore: the tests and descriptions of the sources whose
default data type now reaches the consuming route (#3117) (#3304)
f80337f40 is described below
commit f80337f40db9bf0b311c8481007d7aeafe76cf07
Author: Claus Ibsen <[email protected]>
AuthorDate: Fri Nov 20 18:52:53 2026 +0100
chore: the tests and descriptions of the sources whose default data type
now reaches the consuming route (#3117) (#3304)
* chore: the tests and descriptions of the sources whose default data type
now reaches the consuming route (#3117)
Since CAMEL-27258, Camel applies the default output data type of a
source Kamelet before the consuming route. The 14 sources that already
had one (all but aws-cloudtrail-source, see #3297, and
google-mail-source, see #3296) now give that route the declared body and
Content-Type:
- the Citrus expectations of their tests are updated, and the sqs, s3,
ddb-streams and slack routes log the body class and Content-Type so
that their tests can check it;
- the Output: paragraphs name the Content-Type, and the body where it
changed (azure-storage-queue-source: text, not a stream).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y4dDmBDsSWV117kccuNf9
* chore: azure-storage-files-source gives the file, which the binary
default keeps (CAMEL-27267)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y4dDmBDsSWV117kccuNf9
* chore: the aws-cloudtrail-source test expects the text body that its
default data type gives the consuming route (#3117)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y4dDmBDsSWV117kccuNf9
---------
Co-authored-by: Claude Opus 5.5 <[email protected]>
---
kamelets/aws-ddb-streams-source.kamelet.yaml | 2 +-
kamelets/aws-s3-source.kamelet.yaml | 2 +-
kamelets/aws-sqs-source.kamelet.yaml | 2 +-
kamelets/azure-cosmosdb-source.kamelet.yaml | 2 +-
kamelets/azure-eventhubs-source.kamelet.yaml | 2 +-
kamelets/azure-storage-blob-source.kamelet.yaml | 2 +-
.../azure-storage-datalake-source.kamelet.yaml | 2 +-
kamelets/azure-storage-files-source.kamelet.yaml | 2 +-
kamelets/azure-storage-queue-source.kamelet.yaml | 2 +-
kamelets/google-calendar-source.kamelet.yaml | 2 +-
kamelets/google-sheets-source.kamelet.yaml | 2 +-
kamelets/google-storage-source.kamelet.yaml | 2 +-
kamelets/ibm-cos-source.kamelet.yaml | 2 +-
kamelets/slack-source.kamelet.yaml | 2 +-
.../main/resources/META-INF/kamelets-index.json | 28 +++++++++++-----------
.../kamelets/aws-ddb-streams-source.kamelet.yaml | 2 +-
.../resources/kamelets/aws-s3-source.kamelet.yaml | 2 +-
.../resources/kamelets/aws-sqs-source.kamelet.yaml | 2 +-
.../kamelets/azure-cosmosdb-source.kamelet.yaml | 2 +-
.../kamelets/azure-eventhubs-source.kamelet.yaml | 2 +-
.../azure-storage-blob-source.kamelet.yaml | 2 +-
.../azure-storage-datalake-source.kamelet.yaml | 2 +-
.../azure-storage-files-source.kamelet.yaml | 2 +-
.../azure-storage-queue-source.kamelet.yaml | 2 +-
.../kamelets/google-calendar-source.kamelet.yaml | 2 +-
.../kamelets/google-sheets-source.kamelet.yaml | 2 +-
.../kamelets/google-storage-source.kamelet.yaml | 2 +-
.../resources/kamelets/ibm-cos-source.kamelet.yaml | 2 +-
.../resources/kamelets/slack-source.kamelet.yaml | 2 +-
.../aws-cloudtrail-source-route.citrus.it.yaml | 4 ++--
.../resources/aws/ddb/aws-ddb-source-route.yaml | 2 ++
.../aws/ddb/aws-ddb-source.citrus.it.yaml | 6 +++++
.../test/resources/aws/s3/aws-s3-source-route.yaml | 2 ++
.../aws/s3/aws-s3-uri-pipe.citrus.it.yaml | 6 +++++
.../resources/aws/sqs/aws-sqs-source-route.yaml | 2 ++
.../aws/sqs/aws-sqs-uri-pipe.citrus.it.yaml | 6 +++++
.../azure-cosmosdb-source-route.citrus.it.yaml | 2 +-
.../azure-eventhubs-source-route.citrus.it.yaml | 2 +-
.../azure/azure-eventhubs-source-route.yaml | 4 +++-
.../azure-storage-blob-source-route.citrus.it.yaml | 2 +-
.../azure/azure-storage-blob-source-route.yaml | 4 +++-
...re-storage-datalake-source-route.citrus.it.yaml | 2 +-
.../azure/azure-storage-datalake-source-route.yaml | 4 +++-
...azure-storage-queue-source-route.citrus.it.yaml | 4 ++--
.../google-storage-source-route.citrus.it.yaml | 2 +-
.../google/google-storage-source-route.yaml | 4 +++-
.../ibmcos/ibm-cos-source-route.citrus.it.yaml | 2 +-
.../resources/ibmcos/ibm-cos-source-route.yaml | 5 ++++
.../slack/slack-source-route.citrus.it.yaml | 6 +++++
.../test/resources/slack/slack-source-route.yaml | 2 ++
50 files changed, 101 insertions(+), 56 deletions(-)
diff --git a/kamelets/aws-ddb-streams-source.kamelet.yaml
b/kamelets/aws-ddb-streams-source.kamelet.yaml
index 4dd30a833..b85f516e3 100644
--- a/kamelets/aws-ddb-streams-source.kamelet.yaml
+++ b/kamelets/aws-ddb-streams-source.kamelet.yaml
@@ -36,7 +36,7 @@ spec:
Use it to react when data changes in a table, for example to copy new
orders to another system, keep a search index or a cache up to date, or record
an audit trail. To write items into a table, use `aws-ddb-sink`.
- Output: the body is a JSON object, as JSON text, that describes one
change: `eventName` is `INSERT`, `MODIFY` or `REMOVE`, and `dynamodb` holds the
key of the item (`keys`) and, depending on the view type of the stream, the
item before (`oldImage`) and after (`newImage`) the change, with the type of
each attribute. The headers give the ID and the name of the event.
+ Output: the body is a JSON object, as JSON text in bytes with the
`Content-Type` header `application/json`, that describes one change:
`eventName` is `INSERT`, `MODIFY` or `REMOVE`, and `dynamodb` holds the key of
the item (`keys`) and, depending on the view type of the stream, the item
before (`oldImage`) and after (`newImage`) the change, with the type of each
attribute. The headers give the ID and the name of the event.
Good to know: DynamoDB Streams must be enabled on the table, with the
view type that holds the images you need, such as new and old images. By
default it reads only the changes made after it starts, up to 100 in one poll;
set `maxResultsPerRequest` to read fewer at a time. To reach AWS through an
HTTP proxy, set `proxyHost` and `proxyPort`, and set `proxyProtocol` to `HTTP`
for a proxy that takes plain HTTP, such as Squid.
required:
diff --git a/kamelets/aws-s3-source.kamelet.yaml
b/kamelets/aws-s3-source.kamelet.yaml
index aa2f8a3b2..aa1ece135 100644
--- a/kamelets/aws-s3-source.kamelet.yaml
+++ b/kamelets/aws-s3-source.kamelet.yaml
@@ -37,7 +37,7 @@ spec:
Use it to process files that another system drops into a bucket, such as
uploaded documents, exported reports or log files. To react to new files
through S3 event notifications instead of reading the bucket over and over, use
`aws-s3-event-based-source`.
- Output: the body is the content of the file, as bytes. The headers give
the bucket name, the key (the path of the file in the bucket), the content type
and the ETag of the file.
+ Output: the body is the content of the file, as bytes, and the
`Content-Type` header is `application/octet-stream`. The headers give the
bucket name, the key (the path of the file in the bucket), the content type and
the ETag of the file.
Good to know: files are deleted from the bucket after they are read,
unless `deleteAfterRead` is set to false; then the same files are read again on
every poll. `moveAfterRead` moves them to another bucket instead. It also works
with S3-compatible storage, such as MinIO, through `overrideEndpoint` and
`uriEndpointOverride`. To reach AWS through an HTTP proxy, set `proxyHost` and
`proxyPort`, and set `proxyProtocol` to `HTTP` for a proxy that takes plain
HTTP, such as Squid.
required:
diff --git a/kamelets/aws-sqs-source.kamelet.yaml
b/kamelets/aws-sqs-source.kamelet.yaml
index 4d6cb1c67..deca004ef 100644
--- a/kamelets/aws-sqs-source.kamelet.yaml
+++ b/kamelets/aws-sqs-source.kamelet.yaml
@@ -37,7 +37,7 @@ spec:
Use it to process work that other systems put in a queue, such as
orders, jobs or notifications, or the events that SNS, S3 or EventBridge send
to a queue. For the events of an S3 bucket, `aws-s3-event-based-source` can
also fetch the files.
- Output: the body is the body of the SQS message, as text. The headers
give the message ID (`CamelAwsSqsMessageId`), the receipt handle and the MD5
checksum of the body. The message attributes, which the sender sets on a
message, are read only when `messageAttributeNames` names them, and the system
attributes of SQS, such as `SentTimestamp`, only when `attributeNames` names
them. Each attribute that is read becomes a header of the same name, except a
message attribute whose name sta [...]
+ Output: the body is the body of the SQS message, as text, and the
`Content-Type` header is `text/plain`. The headers give the message ID
(`CamelAwsSqsMessageId`), the receipt handle and the MD5 checksum of the body.
The message attributes, which the sender sets on a message, are read only when
`messageAttributeNames` names them, and the system attributes of SQS, such as
`SentTimestamp`, only when `attributeNames` names them. Each attribute that is
read becomes a header of the same [...]
Good to know: a message is deleted only after it has been processed
without error; a message that fails stays in the queue and is received again
when its visibility timeout ends. With `deleteAfterRead` set to false, the
messages stay in the queue and are received again and again. A message that
takes longer to process than the visibility timeout is received a second time,
by this or another reader: set `extendMessageVisibility` to keep it hidden for
as long as it is processed. By d [...]
required:
diff --git a/kamelets/azure-cosmosdb-source.kamelet.yaml
b/kamelets/azure-cosmosdb-source.kamelet.yaml
index 6433bec17..35d86be46 100644
--- a/kamelets/azure-cosmosdb-source.kamelet.yaml
+++ b/kamelets/azure-cosmosdb-source.kamelet.yaml
@@ -36,7 +36,7 @@ spec:
Use it to react to new or updated documents, for example to copy them to
a search index, a cache or Kafka. To create items, use `azure-cosmosdb-sink`.
- Output: the body is a JSON array of the items of one batch, as JSON text
(a stream), each item with the fields that Cosmos DB adds, such as `_etag`. The
`Content-Type` header is `application/json`.
+ Output: the body is a JSON array of the items of one batch, as JSON text
in bytes, each item with the fields that Cosmos DB adds, such as `_etag`. The
`Content-Type` header is `application/json`.
Good to know: it reads only the changes made after it first starts,
unless `startFromBeginning` is true, and it does not see deleted items. It
keeps its position in a lease container, `camel-lease` in the database
`databaseName` unless set otherwise, which must exist unless
`createLeaseContainerIfNotExists` is true. Two integrations that read the same
container with the same lease container share one position, and each change
goes to only one of them, unless each has its own `lease [...]
required:
diff --git a/kamelets/azure-eventhubs-source.kamelet.yaml
b/kamelets/azure-eventhubs-source.kamelet.yaml
index 5ed66eb62..ef058f3dc 100644
--- a/kamelets/azure-eventhubs-source.kamelet.yaml
+++ b/kamelets/azure-eventhubs-source.kamelet.yaml
@@ -36,7 +36,7 @@ spec:
Use it to process event streams, such as telemetry or changes, that
other applications send to Event Hubs. To send events, use
`azure-eventhubs-sink`.
- Output: the body is the body of the event, as bytes. The headers give
its partition (`CamelAzureEventHubsPartitionId`), offset, sequence number and
the time it was enqueued, and `CamelAzureEventHubsMetadata` holds the custom
properties of the event.
+ Output: the body is the body of the event, as bytes, and the
`Content-Type` header is `application/octet-stream`. The headers give its
partition (`CamelAzureEventHubsPartitionId`), offset, sequence number and the
time it was enqueued, and `CamelAzureEventHubsMetadata` holds the custom
properties of the event.
Good to know: log in with `sharedAccessName` and `sharedAccessKey`, with
`connectionString`, or with `credentialType` `AZURE_IDENTITY`. Set
`namespaceName` and `eventhubName` unless `connectionString` is set. When no
position has been saved yet, it starts with the events that arrive after it
starts, not the older ones. It reads as the `$Default` consumer group, or as
the one in `consumerGroupName`, and each consumer group has its own saved
position. For each partition, it saves its [...]
required:
diff --git a/kamelets/azure-storage-blob-source.kamelet.yaml
b/kamelets/azure-storage-blob-source.kamelet.yaml
index b9b9b1b49..8c5aa76e4 100644
--- a/kamelets/azure-storage-blob-source.kamelet.yaml
+++ b/kamelets/azure-storage-blob-source.kamelet.yaml
@@ -36,7 +36,7 @@ spec:
Use it to process files that another system drops into a container, such
as uploaded documents, exported reports or log files. To react to new blobs
through Event Grid events instead of reading the container over and over, use
`azure-storage-blob-event-based-source`.
- Output: the body is the content of the blob, as a stream of bytes. The
headers give the name of the blob (`CamelAzureStorageBlobBlobName`, with its
folder path), its type, content type, size, ETag and last-modified time.
+ Output: the body is the content of the blob, as a stream of bytes, and
the `Content-Type` header is `application/octet-stream`. The headers give the
name of the blob (`CamelAzureStorageBlobBlobName`, with its folder path), its
type, content type, size, ETag and last-modified time.
Good to know: blobs are kept after they are read, so the same blobs are
read again on every poll, every 500 milliseconds by default; set
`deleteAfterRead` to true to delete each blob once it has been processed, or
`moveAfterRead` to move it to another container. It reads all the blobs of the
container, those in virtual folders too, unless `prefix` or `regex` narrows
them down. With `deleteAfterRead`, the blob deleted is the one named in the
`CamelAzureStorageBlobBlobName` header wh [...]
required:
diff --git a/kamelets/azure-storage-datalake-source.kamelet.yaml
b/kamelets/azure-storage-datalake-source.kamelet.yaml
index 717348a9b..294aa4181 100644
--- a/kamelets/azure-storage-datalake-source.kamelet.yaml
+++ b/kamelets/azure-storage-datalake-source.kamelet.yaml
@@ -36,7 +36,7 @@ spec:
Use it to process files that land in a data lake, such as exports or
reports. For plain blob containers, use `azure-storage-blob-source`, which can
also delete what it reads.
- Output: the body is the content of the file, as a stream of bytes. The
`CamelAzureStorageDataLakeFileName` header is the name of the file, and other
headers give its size, content type, ETag and last-modified time.
+ Output: the body is the content of the file, as a stream of bytes, and
the `Content-Type` header is `application/octet-stream`. The
`CamelAzureStorageDataLakeFileName` header is the name of the file, and other
headers give its size, content type, ETag and last-modified time.
Good to know: it neither deletes nor moves the files, so it reads all of
them again on every poll, every 500 milliseconds by default. It reads the files
at the top of the file system, or of `directoryName`; the files in directories
below are read only when `recursive` is true. `regex` keeps only the files
whose path matches, and `fileName` reads one file. Log in as an app
registration with `clientId`, `clientSecret` and `tenantId` (the default), or
with an account key (`accountKey` [...]
required:
diff --git a/kamelets/azure-storage-files-source.kamelet.yaml
b/kamelets/azure-storage-files-source.kamelet.yaml
index 47275e0ec..0af8472fa 100644
--- a/kamelets/azure-storage-files-source.kamelet.yaml
+++ b/kamelets/azure-storage-files-source.kamelet.yaml
@@ -36,7 +36,7 @@ spec:
Use it to process files that people or applications put on a share, such
as scanned documents or exports. For blob containers, use
`azure-storage-blob-source`.
- Output: the body is the content of the file, which converts to text,
bytes or a stream. The `CamelFileName` header is the path of the file from
`directoryName`, `CamelFileNameOnly` its name, and `CamelFileLength` and
`CamelFileLastModified` its size and last-modified time.
+ Output: the body is the file, which converts to text, bytes or a stream,
and the `Content-Type` header is `application/octet-stream`. The
`CamelFileName` header is the path of the file from `directoryName`,
`CamelFileNameOnly` its name, and `CamelFileLength` and `CamelFileLastModified`
its size and last-modified time.
Good to know: files are kept after they are read, so the same files are
read again on every poll, every 500 milliseconds by default. To read each file
only once, set `deleteAfterRead` to true to delete it, set `move` to a
directory such as `.done` to move it, or set `noop` to true to leave it in
place and remember the files read, in memory or, with `idempotentRepository`,
across restarts. Subdirectories are read only when `recursive` is true.
`include` and `antInclude` read only th [...]
required:
diff --git a/kamelets/azure-storage-queue-source.kamelet.yaml
b/kamelets/azure-storage-queue-source.kamelet.yaml
index 604a1c29e..8c9ed9dd2 100644
--- a/kamelets/azure-storage-queue-source.kamelet.yaml
+++ b/kamelets/azure-storage-queue-source.kamelet.yaml
@@ -36,7 +36,7 @@ spec:
Use it to process work that other applications put in a storage queue,
such as orders or jobs. For Service Bus queues and topics, use
`azure-servicebus-source`.
- Output: the body is the text of the queue message (as a stream). The
headers give its ID (`CamelAzureStorageQueueMessageId`), the times it was
inserted and expires, its pop receipt, and how many times it has been received
(`CamelAzureStorageQueueDequeueCount`).
+ Output: the body is the text of the queue message, as text, and the
`Content-Type` header is `text/plain`. The headers give its ID
(`CamelAzureStorageQueueMessageId`), the times it was inserted and expires, its
pop receipt, and how many times it has been received
(`CamelAzureStorageQueueDequeueCount`).
Good to know: a received message is hidden from other readers while it
is processed. When the processing fails, it stays in the queue and is received
again once that time is over, 30 seconds by default (`visibilityTimeout`), with
a higher dequeue count. The queue is checked for new messages every 500
milliseconds, unless `delay` says otherwise.
required:
diff --git a/kamelets/google-calendar-source.kamelet.yaml
b/kamelets/google-calendar-source.kamelet.yaml
index 26a4a9b16..15195a4c2 100644
--- a/kamelets/google-calendar-source.kamelet.yaml
+++ b/kamelets/google-calendar-source.kamelet.yaml
@@ -35,7 +35,7 @@ spec:
Use it to act on calendar entries, for example to send a reminder before
a meeting, copy new appointments into another system, or notify a team when a
booking is made.
- Output: the body is the event as JSON text, with the fields of the
Google Calendar API such as `id`, `summary`, `start` and `attendees`. The
`CamelGoogleCalendarEventId` header gives the ID of the event.
+ Output: the body is the event as JSON text in bytes, with the
`Content-Type` header `application/json`, and with the fields of the Google
Calendar API such as `id`, `summary`, `start` and `attendees`. The
`CamelGoogleCalendarEventId` header gives the ID of the event.
Good to know: by default it only receives the events that have not ended
yet at the time of the poll (`consumeFromNow`). Each poll asks for one page of
up to `maxResults` events (10 by default), the events that changed least
recently first, so the same events can come again on every poll. With
`considerLastUpdate` set to true, each poll reads all the pages, and after the
first poll only the events that changed since the last one received. With
`syncFlow` set to true, each poll afte [...]
required:
diff --git a/kamelets/google-sheets-source.kamelet.yaml
b/kamelets/google-sheets-source.kamelet.yaml
index b7ee02c8a..d9651d090 100644
--- a/kamelets/google-sheets-source.kamelet.yaml
+++ b/kamelets/google-sheets-source.kamelet.yaml
@@ -35,7 +35,7 @@ spec:
Use it to feed the content of a spreadsheet that people maintain, such
as a price list, a contact list or a list of tasks, to another system on a
schedule. To write rows to a spreadsheet, use `google-sheets-sink`.
- Output: with `range` set, the body is one row as JSON text, a JSON array
of the values of the row (or of one column, with `majorDimension` set to
`COLUMNS`), such as `["Alice","3"]`; with `splitResults` set to false, it is
the whole range as JSON text, with the rows in its `values` field. Without
`range`, the body is the description of the spreadsheet (its sheets and
properties) as JSON text, not its cells. The `CamelGoogleSheets.spreadsheetId`
and `CamelGoogleSheets.range` headers [...]
+ Output: with `range` set, the body is one row as JSON text, a JSON array
of the values of the row (or of one column, with `majorDimension` set to
`COLUMNS`), such as `["Alice","3"]`; with `splitResults` set to false, it is
the whole range as JSON text, with the rows in its `values` field. Without
`range`, the body is the description of the spreadsheet (its sheets and
properties) as JSON text, not its cells. The JSON text is in bytes, and the
`Content-Type` header is `application/js [...]
Good to know: every poll reads the whole range again, by default every
500 milliseconds, so the same rows come again and again until `repeatCount` is
reached; it does not track which rows are new. It logs in to Google either with
OAuth (an OAuth client of a Google Cloud project, and an access token and a
refresh token of a Google account that may read the spreadsheet), or with the
key of a service account in `serviceAccountKey` together with `scopes`; share
the spreadsheet with the [...]
required:
diff --git a/kamelets/google-storage-source.kamelet.yaml
b/kamelets/google-storage-source.kamelet.yaml
index 8aacdd551..e0e136596 100644
--- a/kamelets/google-storage-source.kamelet.yaml
+++ b/kamelets/google-storage-source.kamelet.yaml
@@ -35,7 +35,7 @@ spec:
Use it to process files that another system drops into a bucket, such as
uploaded documents, exported reports or log files. To react to new files
through Pub/Sub notifications instead of reading the bucket over and over, use
`google-storage-event-based-source`.
- Output: the body is the content of the file, as a stream. The headers
give the bucket name (`CamelGoogleCloudStorageBucketName`), the object name,
that is the path of the file in the bucket
(`CamelGoogleCloudStorageObjectName`), the content type and the ETag of the
file.
+ Output: the body is the content of the file, as a stream, and the
`Content-Type` header is `application/octet-stream`. The headers give the
bucket name (`CamelGoogleCloudStorageBucketName`), the object name, that is the
path of the file in the bucket (`CamelGoogleCloudStorageObjectName`), the
content type and the ETag of the file.
Good to know: files are deleted from the bucket after they are read,
unless `deleteAfterRead` is set to false; then the same files are read again on
every poll, about twice a second, or every `delay` milliseconds. With
`moveAfterRead`, they are copied to `destinationBucket` first. A file whose
processing fails is not deleted or moved, and is read again on the next poll.
Without `serviceAccountKey`, it logs in with the Application Default
Credentials of the environment where it runs [...]
required:
diff --git a/kamelets/ibm-cos-source.kamelet.yaml
b/kamelets/ibm-cos-source.kamelet.yaml
index 7a47bca30..7902b2050 100644
--- a/kamelets/ibm-cos-source.kamelet.yaml
+++ b/kamelets/ibm-cos-source.kamelet.yaml
@@ -36,7 +36,7 @@ spec:
Use it to process files that another system drops into a bucket, such as
uploaded documents, exported reports or log files. To upload files to a bucket,
use `ibm-cos-sink`.
- Output: the body is the content of the file, as a stream. The headers
give the bucket name (`CamelIBMCOSBucketName`), the key, that is the path of
the file in the bucket (`CamelIBMCOSKey`), the content type, the size and the
ETag of the file.
+ Output: the body is the content of the file, as a stream, and the
`Content-Type` header is `application/octet-stream`. The headers give the
bucket name (`CamelIBMCOSBucketName`), the key, that is the path of the file in
the bucket (`CamelIBMCOSKey`), the content type, the size and the ETag of the
file.
Good to know: files are deleted from the bucket after they are read,
unless `deleteAfterRead` is set to false; then the same files are read again on
every poll. `moveAfterRead` moves them to another bucket instead. To read one
file only, set `fileName`. A file whose processing fails is kept, and read
again on the next poll. It logs in with an IBM Cloud API key.
required:
diff --git a/kamelets/slack-source.kamelet.yaml
b/kamelets/slack-source.kamelet.yaml
index 313e12bac..b9fc58cc0 100644
--- a/kamelets/slack-source.kamelet.yaml
+++ b/kamelets/slack-source.kamelet.yaml
@@ -35,7 +35,7 @@ spec:
Use it to react to what people write in a channel, for example to turn a
message in `#support` into a ticket, to archive a channel, or to start a job
when someone posts a command. To post to Slack instead, use `slack-sink`.
- Output: the body is the Slack message as JSON text, with fields such as
`text` (what was written), `user` (the ID of the author) and `ts` (the time
stamp that identifies the message). The `Content-Type` header is
`application/json`.
+ Output: the body is the Slack message as JSON text in bytes, with fields
such as `text` (what was written), `user` (the ID of the author) and `ts` (the
time stamp that identifies the message). The `Content-Type` header is
`application/json`.
Good to know: when it starts, it also sends the most recent message
already in the channel, then only the messages posted after it. It does not
remember where it stopped: after a restart it starts again from the most recent
message. It reads public channels only, by their name, and needs a token of a
Slack app, see `token`.
required:
diff --git
a/library/camel-kamelets/src/main/resources/META-INF/kamelets-index.json
b/library/camel-kamelets/src/main/resources/META-INF/kamelets-index.json
index 08f810525..12cb0e320 100644
--- a/library/camel-kamelets/src/main/resources/META-INF/kamelets-index.json
+++ b/library/camel-kamelets/src/main/resources/META-INF/kamelets-index.json
@@ -95,7 +95,7 @@
"supportLevel" : "Stable",
"title" : "AWS DynamoDB Streams Source",
"summary" : "Receives the changes made to the items of an Amazon DynamoDB
table from its stream, one message per inserted, modified or removed item.",
- "description" : "Receives the changes made to the items of an Amazon
DynamoDB table from its stream, one message per inserted, modified or removed
item.\n\nUse it to react when data changes in a table, for example to copy new
orders to another system, keep a search index or a cache up to date, or record
an audit trail. To write items into a table, use `aws-ddb-sink`.\n\nOutput: the
body is a JSON object, as JSON text, that describes one change: `eventName` is
`INSERT`, `MODIFY` or `R [...]
+ "description" : "Receives the changes made to the items of an Amazon
DynamoDB table from its stream, one message per inserted, modified or removed
item.\n\nUse it to react when data changes in a table, for example to copy new
orders to another system, keep a search index or a cache up to date, or record
an audit trail. To write items into a table, use `aws-ddb-sink`.\n\nOutput: the
body is a JSON object, as JSON text in bytes with the `Content-Type` header
`application/json`, that de [...]
"group" : "AWS DynamoDB Streams",
"namespace" : "AWS",
"provider" : "Apache Software Foundation"
@@ -215,7 +215,7 @@
"supportLevel" : "Stable",
"title" : "AWS S3 Source",
"summary" : "Reads the files (objects) in an Amazon S3 bucket, one message
per file, and by default deletes each file once it has been read.",
- "description" : "Reads the files (objects) in an Amazon S3 bucket, one
message per file, and by default deletes each file once it has been
read.\n\nUse it to process files that another system drops into a bucket, such
as uploaded documents, exported reports or log files. To react to new files
through S3 event notifications instead of reading the bucket over and over, use
`aws-s3-event-based-source`.\n\nOutput: the body is the content of the file, as
bytes. The headers give the bucket [...]
+ "description" : "Reads the files (objects) in an Amazon S3 bucket, one
message per file, and by default deletes each file once it has been
read.\n\nUse it to process files that another system drops into a bucket, such
as uploaded documents, exported reports or log files. To react to new files
through S3 event notifications instead of reading the bucket over and over, use
`aws-s3-event-based-source`.\n\nOutput: the body is the content of the file, as
bytes, and the `Content-Type` head [...]
"group" : "AWS S3",
"namespace" : "AWS",
"provider" : "Apache Software Foundation"
@@ -305,7 +305,7 @@
"supportLevel" : "Stable",
"title" : "AWS SQS Source",
"summary" : "Receives the messages of an Amazon SQS queue, one message
each, and by default deletes each message from the queue once it has been
processed.",
- "description" : "Receives the messages of an Amazon SQS queue, one message
each, and by default deletes each message from the queue once it has been
processed.\n\nUse it to process work that other systems put in a queue, such as
orders, jobs or notifications, or the events that SNS, S3 or EventBridge send
to a queue. For the events of an S3 bucket, `aws-s3-event-based-source` can
also fetch the files.\n\nOutput: the body is the body of the SQS message, as
text. The headers give the m [...]
+ "description" : "Receives the messages of an Amazon SQS queue, one message
each, and by default deletes each message from the queue once it has been
processed.\n\nUse it to process work that other systems put in a queue, such as
orders, jobs or notifications, or the events that SNS, S3 or EventBridge send
to a queue. For the events of an S3 bucket, `aws-s3-event-based-source` can
also fetch the files.\n\nOutput: the body is the body of the SQS message, as
text, and the `Content-Type` [...]
"group" : "AWS SQS",
"namespace" : "AWS",
"provider" : "Apache Software Foundation"
@@ -345,7 +345,7 @@
"supportLevel" : "Stable",
"title" : "Azure CosmosDB Source",
"summary" : "Receives the items created or changed in a container of Azure
Cosmos DB, through its change feed, as a JSON array per batch.",
- "description" : "Receives the items created or changed in a container of
Azure Cosmos DB, through its change feed, as a JSON array per batch.\n\nUse it
to react to new or updated documents, for example to copy them to a search
index, a cache or Kafka. To create items, use `azure-cosmosdb-sink`.\n\nOutput:
the body is a JSON array of the items of one batch, as JSON text (a stream),
each item with the fields that Cosmos DB adds, such as `_etag`. The
`Content-Type` header is `applicatio [...]
+ "description" : "Receives the items created or changed in a container of
Azure Cosmos DB, through its change feed, as a JSON array per batch.\n\nUse it
to react to new or updated documents, for example to copy them to a search
index, a cache or Kafka. To create items, use `azure-cosmosdb-sink`.\n\nOutput:
the body is a JSON array of the items of one batch, as JSON text in bytes, each
item with the fields that Cosmos DB adds, such as `_etag`. The `Content-Type`
header is `application/ [...]
"group" : "Azure CosmosDB",
"namespace" : "Azure",
"provider" : "Apache Software Foundation"
@@ -365,7 +365,7 @@
"supportLevel" : "Stable",
"title" : "Azure Eventhubs Source",
"summary" : "Receives the events of an event hub in Azure Event Hubs, one
message per event, and saves how far it has read in an Azure Storage blob
container.",
- "description" : "Receives the events of an event hub in Azure Event Hubs,
one message per event, and saves how far it has read in an Azure Storage blob
container.\n\nUse it to process event streams, such as telemetry or changes,
that other applications send to Event Hubs. To send events, use
`azure-eventhubs-sink`.\n\nOutput: the body is the body of the event, as bytes.
The headers give its partition (`CamelAzureEventHubsPartitionId`), offset,
sequence number and the time it was enqu [...]
+ "description" : "Receives the events of an event hub in Azure Event Hubs,
one message per event, and saves how far it has read in an Azure Storage blob
container.\n\nUse it to process event streams, such as telemetry or changes,
that other applications send to Event Hubs. To send events, use
`azure-eventhubs-sink`.\n\nOutput: the body is the body of the event, as bytes,
and the `Content-Type` header is `application/octet-stream`. The headers give
its partition (`CamelAzureEventHubsPa [...]
"group" : "Azure Eventhubs",
"namespace" : "Azure",
"provider" : "Apache Software Foundation"
@@ -435,7 +435,7 @@
"supportLevel" : "Stable",
"title" : "Azure Storage Blob Source",
"summary" : "Reads the files (blobs) in a container of Azure Blob Storage,
one message per blob, and can delete each blob, or move it to another
container, once it has been read.",
- "description" : "Reads the files (blobs) in a container of Azure Blob
Storage, one message per blob, and can delete each blob, or move it to another
container, once it has been read.\n\nUse it to process files that another
system drops into a container, such as uploaded documents, exported reports or
log files. To react to new blobs through Event Grid events instead of reading
the container over and over, use
`azure-storage-blob-event-based-source`.\n\nOutput: the body is the content
[...]
+ "description" : "Reads the files (blobs) in a container of Azure Blob
Storage, one message per blob, and can delete each blob, or move it to another
container, once it has been read.\n\nUse it to process files that another
system drops into a container, such as uploaded documents, exported reports or
log files. To react to new blobs through Event Grid events instead of reading
the container over and over, use
`azure-storage-blob-event-based-source`.\n\nOutput: the body is the content
[...]
"group" : "Azure Storage Blob",
"namespace" : "Azure",
"provider" : "Apache Software Foundation"
@@ -455,7 +455,7 @@
"supportLevel" : "Stable",
"title" : "Azure Storage Blob Data Lake Source",
"summary" : "Reads the files in a file system of Azure Data Lake Storage
Gen2, one message per file, on every poll.",
- "description" : "Reads the files in a file system of Azure Data Lake
Storage Gen2, one message per file, on every poll.\n\nUse it to process files
that land in a data lake, such as exports or reports. For plain blob
containers, use `azure-storage-blob-source`, which can also delete what it
reads.\n\nOutput: the body is the content of the file, as a stream of bytes.
The `CamelAzureStorageDataLakeFileName` header is the name of the file, and
other headers give its size, content type, E [...]
+ "description" : "Reads the files in a file system of Azure Data Lake
Storage Gen2, one message per file, on every poll.\n\nUse it to process files
that land in a data lake, such as exports or reports. For plain blob
containers, use `azure-storage-blob-source`, which can also delete what it
reads.\n\nOutput: the body is the content of the file, as a stream of bytes,
and the `Content-Type` header is `application/octet-stream`. The
`CamelAzureStorageDataLakeFileName` header is the name [...]
"group" : "Azure Storage Blob Data Lake",
"namespace" : "Azure",
"provider" : "Apache Software Foundation"
@@ -475,7 +475,7 @@
"supportLevel" : "Stable",
"title" : "Azure Storage File Source",
"summary" : "Reads the files in a directory of a file share in Azure
Files, one message per file, and can delete each file once it has been read.",
- "description" : "Reads the files in a directory of a file share in Azure
Files, one message per file, and can delete each file once it has been
read.\n\nUse it to process files that people or applications put on a share,
such as scanned documents or exports. For blob containers, use
`azure-storage-blob-source`.\n\nOutput: the body is the content of the file,
which converts to text, bytes or a stream. The `CamelFileName` header is the
path of the file from `directoryName`, `CamelFileN [...]
+ "description" : "Reads the files in a directory of a file share in Azure
Files, one message per file, and can delete each file once it has been
read.\n\nUse it to process files that people or applications put on a share,
such as scanned documents or exports. For blob containers, use
`azure-storage-blob-source`.\n\nOutput: the body is the file, which converts to
text, bytes or a stream, and the `Content-Type` header is
`application/octet-stream`. The `CamelFileName` header is the path [...]
"group" : "Azure Storage Blob",
"namespace" : "Azure",
"provider" : "Apache Software Foundation"
@@ -495,7 +495,7 @@
"supportLevel" : "Stable",
"title" : "Azure Storage Queue Source",
"summary" : "Receives the messages of a queue in Azure Queue Storage, one
message each, and deletes each message from the queue once it has been
processed.",
- "description" : "Receives the messages of a queue in Azure Queue Storage,
one message each, and deletes each message from the queue once it has been
processed.\n\nUse it to process work that other applications put in a storage
queue, such as orders or jobs. For Service Bus queues and topics, use
`azure-servicebus-source`.\n\nOutput: the body is the text of the queue message
(as a stream). The headers give its ID (`CamelAzureStorageQueueMessageId`), the
times it was inserted and expir [...]
+ "description" : "Receives the messages of a queue in Azure Queue Storage,
one message each, and deletes each message from the queue once it has been
processed.\n\nUse it to process work that other applications put in a storage
queue, such as orders or jobs. For Service Bus queues and topics, use
`azure-servicebus-source`.\n\nOutput: the body is the text of the queue
message, as text, and the `Content-Type` header is `text/plain`. The headers
give its ID (`CamelAzureStorageQueueMessag [...]
"group" : "Azure Storage Queue",
"namespace" : "Azure",
"provider" : "Apache Software Foundation"
@@ -885,7 +885,7 @@
"supportLevel" : "Stable",
"title" : "Google Calendar Source",
"summary" : "Receives the events of a Google Calendar, such as meetings
and appointments, one message per event, by asking the calendar for events at a
regular interval.",
- "description" : "Receives the events of a Google Calendar, such as
meetings and appointments, one message per event, by asking the calendar for
events at a regular interval.\n\nUse it to act on calendar entries, for example
to send a reminder before a meeting, copy new appointments into another system,
or notify a team when a booking is made.\n\nOutput: the body is the event as
JSON text, with the fields of the Google Calendar API such as `id`, `summary`,
`start` and `attendees`. The [...]
+ "description" : "Receives the events of a Google Calendar, such as
meetings and appointments, one message per event, by asking the calendar for
events at a regular interval.\n\nUse it to act on calendar entries, for example
to send a reminder before a meeting, copy new appointments into another system,
or notify a team when a booking is made.\n\nOutput: the body is the event as
JSON text in bytes, with the `Content-Type` header `application/json`, and with
the fields of the Google Ca [...]
"group" : "Google Calendar",
"namespace" : "GCP",
"provider" : "Apache Software Foundation"
@@ -935,7 +935,7 @@
"supportLevel" : "Stable",
"title" : "Google Sheets Source",
"summary" : "Reads the cells of a Google Sheets spreadsheet again and
again, at a regular interval, and sends each row of the range as a message.",
- "description" : "Reads the cells of a Google Sheets spreadsheet again and
again, at a regular interval, and sends each row of the range as a
message.\n\nUse it to feed the content of a spreadsheet that people maintain,
such as a price list, a contact list or a list of tasks, to another system on a
schedule. To write rows to a spreadsheet, use `google-sheets-sink`.\n\nOutput:
with `range` set, the body is one row as JSON text, a JSON array of the values
of the row (or of one column, w [...]
+ "description" : "Reads the cells of a Google Sheets spreadsheet again and
again, at a regular interval, and sends each row of the range as a
message.\n\nUse it to feed the content of a spreadsheet that people maintain,
such as a price list, a contact list or a list of tasks, to another system on a
schedule. To write rows to a spreadsheet, use `google-sheets-sink`.\n\nOutput:
with `range` set, the body is one row as JSON text, a JSON array of the values
of the row (or of one column, w [...]
"group" : "Google Sheets",
"namespace" : "GCP",
"provider" : "Apache Software Foundation"
@@ -965,7 +965,7 @@
"supportLevel" : "Stable",
"title" : "Google Storage Source",
"summary" : "Reads the files (objects) in a Google Cloud Storage bucket,
one message per file, and by default deletes each file once it has been read.",
- "description" : "Reads the files (objects) in a Google Cloud Storage
bucket, one message per file, and by default deletes each file once it has been
read.\n\nUse it to process files that another system drops into a bucket, such
as uploaded documents, exported reports or log files. To react to new files
through Pub/Sub notifications instead of reading the bucket over and over, use
`google-storage-event-based-source`.\n\nOutput: the body is the content of the
file, as a stream. The hea [...]
+ "description" : "Reads the files (objects) in a Google Cloud Storage
bucket, one message per file, and by default deletes each file once it has been
read.\n\nUse it to process files that another system drops into a bucket, such
as uploaded documents, exported reports or log files. To react to new files
through Pub/Sub notifications instead of reading the bucket over and over, use
`google-storage-event-based-source`.\n\nOutput: the body is the content of the
file, as a stream, and the [...]
"group" : "Google Storage",
"namespace" : "GCP",
"provider" : "Apache Software Foundation"
@@ -1055,7 +1055,7 @@
"supportLevel" : "Preview",
"title" : "IBM Cloud Object Storage Source",
"summary" : "Reads the files (objects) in a bucket of IBM Cloud Object
Storage, one message per file, and by default deletes each file once it has
been read.",
- "description" : "Reads the files (objects) in a bucket of IBM Cloud Object
Storage, one message per file, and by default deletes each file once it has
been read.\n\nUse it to process files that another system drops into a bucket,
such as uploaded documents, exported reports or log files. To upload files to a
bucket, use `ibm-cos-sink`.\n\nOutput: the body is the content of the file, as
a stream. The headers give the bucket name (`CamelIBMCOSBucketName`), the key,
that is the path of [...]
+ "description" : "Reads the files (objects) in a bucket of IBM Cloud Object
Storage, one message per file, and by default deletes each file once it has
been read.\n\nUse it to process files that another system drops into a bucket,
such as uploaded documents, exported reports or log files. To upload files to a
bucket, use `ibm-cos-sink`.\n\nOutput: the body is the content of the file, as
a stream, and the `Content-Type` header is `application/octet-stream`. The
headers give the bucket [...]
"group" : "IBM Cloud Object Storage",
"namespace" : "IBM",
"provider" : "Apache Software Foundation"
@@ -1935,7 +1935,7 @@
"supportLevel" : "Stable",
"title" : "Slack Source",
"summary" : "Reads the new messages posted in a public Slack channel, by
asking Slack at a regular interval, one message per Slack message.",
- "description" : "Reads the new messages posted in a public Slack channel,
by asking Slack at a regular interval, one message per Slack message.\n\nUse it
to react to what people write in a channel, for example to turn a message in
`#support` into a ticket, to archive a channel, or to start a job when someone
posts a command. To post to Slack instead, use `slack-sink`.\n\nOutput: the
body is the Slack message as JSON text, with fields such as `text` (what was
written), `user` (the ID [...]
+ "description" : "Reads the new messages posted in a public Slack channel,
by asking Slack at a regular interval, one message per Slack message.\n\nUse it
to react to what people write in a channel, for example to turn a message in
`#support` into a ticket, to archive a channel, or to start a job when someone
posts a command. To post to Slack instead, use `slack-sink`.\n\nOutput: the
body is the Slack message as JSON text in bytes, with fields such as `text`
(what was written), `user` [...]
"group" : "Slack",
"namespace" : "Social",
"provider" : "Apache Software Foundation"
diff --git
a/library/camel-kamelets/src/main/resources/kamelets/aws-ddb-streams-source.kamelet.yaml
b/library/camel-kamelets/src/main/resources/kamelets/aws-ddb-streams-source.kamelet.yaml
index 4dd30a833..b85f516e3 100644
---
a/library/camel-kamelets/src/main/resources/kamelets/aws-ddb-streams-source.kamelet.yaml
+++
b/library/camel-kamelets/src/main/resources/kamelets/aws-ddb-streams-source.kamelet.yaml
@@ -36,7 +36,7 @@ spec:
Use it to react when data changes in a table, for example to copy new
orders to another system, keep a search index or a cache up to date, or record
an audit trail. To write items into a table, use `aws-ddb-sink`.
- Output: the body is a JSON object, as JSON text, that describes one
change: `eventName` is `INSERT`, `MODIFY` or `REMOVE`, and `dynamodb` holds the
key of the item (`keys`) and, depending on the view type of the stream, the
item before (`oldImage`) and after (`newImage`) the change, with the type of
each attribute. The headers give the ID and the name of the event.
+ Output: the body is a JSON object, as JSON text in bytes with the
`Content-Type` header `application/json`, that describes one change:
`eventName` is `INSERT`, `MODIFY` or `REMOVE`, and `dynamodb` holds the key of
the item (`keys`) and, depending on the view type of the stream, the item
before (`oldImage`) and after (`newImage`) the change, with the type of each
attribute. The headers give the ID and the name of the event.
Good to know: DynamoDB Streams must be enabled on the table, with the
view type that holds the images you need, such as new and old images. By
default it reads only the changes made after it starts, up to 100 in one poll;
set `maxResultsPerRequest` to read fewer at a time. To reach AWS through an
HTTP proxy, set `proxyHost` and `proxyPort`, and set `proxyProtocol` to `HTTP`
for a proxy that takes plain HTTP, such as Squid.
required:
diff --git
a/library/camel-kamelets/src/main/resources/kamelets/aws-s3-source.kamelet.yaml
b/library/camel-kamelets/src/main/resources/kamelets/aws-s3-source.kamelet.yaml
index aa2f8a3b2..aa1ece135 100644
---
a/library/camel-kamelets/src/main/resources/kamelets/aws-s3-source.kamelet.yaml
+++
b/library/camel-kamelets/src/main/resources/kamelets/aws-s3-source.kamelet.yaml
@@ -37,7 +37,7 @@ spec:
Use it to process files that another system drops into a bucket, such as
uploaded documents, exported reports or log files. To react to new files
through S3 event notifications instead of reading the bucket over and over, use
`aws-s3-event-based-source`.
- Output: the body is the content of the file, as bytes. The headers give
the bucket name, the key (the path of the file in the bucket), the content type
and the ETag of the file.
+ Output: the body is the content of the file, as bytes, and the
`Content-Type` header is `application/octet-stream`. The headers give the
bucket name, the key (the path of the file in the bucket), the content type and
the ETag of the file.
Good to know: files are deleted from the bucket after they are read,
unless `deleteAfterRead` is set to false; then the same files are read again on
every poll. `moveAfterRead` moves them to another bucket instead. It also works
with S3-compatible storage, such as MinIO, through `overrideEndpoint` and
`uriEndpointOverride`. To reach AWS through an HTTP proxy, set `proxyHost` and
`proxyPort`, and set `proxyProtocol` to `HTTP` for a proxy that takes plain
HTTP, such as Squid.
required:
diff --git
a/library/camel-kamelets/src/main/resources/kamelets/aws-sqs-source.kamelet.yaml
b/library/camel-kamelets/src/main/resources/kamelets/aws-sqs-source.kamelet.yaml
index 4d6cb1c67..deca004ef 100644
---
a/library/camel-kamelets/src/main/resources/kamelets/aws-sqs-source.kamelet.yaml
+++
b/library/camel-kamelets/src/main/resources/kamelets/aws-sqs-source.kamelet.yaml
@@ -37,7 +37,7 @@ spec:
Use it to process work that other systems put in a queue, such as
orders, jobs or notifications, or the events that SNS, S3 or EventBridge send
to a queue. For the events of an S3 bucket, `aws-s3-event-based-source` can
also fetch the files.
- Output: the body is the body of the SQS message, as text. The headers
give the message ID (`CamelAwsSqsMessageId`), the receipt handle and the MD5
checksum of the body. The message attributes, which the sender sets on a
message, are read only when `messageAttributeNames` names them, and the system
attributes of SQS, such as `SentTimestamp`, only when `attributeNames` names
them. Each attribute that is read becomes a header of the same name, except a
message attribute whose name sta [...]
+ Output: the body is the body of the SQS message, as text, and the
`Content-Type` header is `text/plain`. The headers give the message ID
(`CamelAwsSqsMessageId`), the receipt handle and the MD5 checksum of the body.
The message attributes, which the sender sets on a message, are read only when
`messageAttributeNames` names them, and the system attributes of SQS, such as
`SentTimestamp`, only when `attributeNames` names them. Each attribute that is
read becomes a header of the same [...]
Good to know: a message is deleted only after it has been processed
without error; a message that fails stays in the queue and is received again
when its visibility timeout ends. With `deleteAfterRead` set to false, the
messages stay in the queue and are received again and again. A message that
takes longer to process than the visibility timeout is received a second time,
by this or another reader: set `extendMessageVisibility` to keep it hidden for
as long as it is processed. By d [...]
required:
diff --git
a/library/camel-kamelets/src/main/resources/kamelets/azure-cosmosdb-source.kamelet.yaml
b/library/camel-kamelets/src/main/resources/kamelets/azure-cosmosdb-source.kamelet.yaml
index 6433bec17..35d86be46 100644
---
a/library/camel-kamelets/src/main/resources/kamelets/azure-cosmosdb-source.kamelet.yaml
+++
b/library/camel-kamelets/src/main/resources/kamelets/azure-cosmosdb-source.kamelet.yaml
@@ -36,7 +36,7 @@ spec:
Use it to react to new or updated documents, for example to copy them to
a search index, a cache or Kafka. To create items, use `azure-cosmosdb-sink`.
- Output: the body is a JSON array of the items of one batch, as JSON text
(a stream), each item with the fields that Cosmos DB adds, such as `_etag`. The
`Content-Type` header is `application/json`.
+ Output: the body is a JSON array of the items of one batch, as JSON text
in bytes, each item with the fields that Cosmos DB adds, such as `_etag`. The
`Content-Type` header is `application/json`.
Good to know: it reads only the changes made after it first starts,
unless `startFromBeginning` is true, and it does not see deleted items. It
keeps its position in a lease container, `camel-lease` in the database
`databaseName` unless set otherwise, which must exist unless
`createLeaseContainerIfNotExists` is true. Two integrations that read the same
container with the same lease container share one position, and each change
goes to only one of them, unless each has its own `lease [...]
required:
diff --git
a/library/camel-kamelets/src/main/resources/kamelets/azure-eventhubs-source.kamelet.yaml
b/library/camel-kamelets/src/main/resources/kamelets/azure-eventhubs-source.kamelet.yaml
index 5ed66eb62..ef058f3dc 100644
---
a/library/camel-kamelets/src/main/resources/kamelets/azure-eventhubs-source.kamelet.yaml
+++
b/library/camel-kamelets/src/main/resources/kamelets/azure-eventhubs-source.kamelet.yaml
@@ -36,7 +36,7 @@ spec:
Use it to process event streams, such as telemetry or changes, that
other applications send to Event Hubs. To send events, use
`azure-eventhubs-sink`.
- Output: the body is the body of the event, as bytes. The headers give
its partition (`CamelAzureEventHubsPartitionId`), offset, sequence number and
the time it was enqueued, and `CamelAzureEventHubsMetadata` holds the custom
properties of the event.
+ Output: the body is the body of the event, as bytes, and the
`Content-Type` header is `application/octet-stream`. The headers give its
partition (`CamelAzureEventHubsPartitionId`), offset, sequence number and the
time it was enqueued, and `CamelAzureEventHubsMetadata` holds the custom
properties of the event.
Good to know: log in with `sharedAccessName` and `sharedAccessKey`, with
`connectionString`, or with `credentialType` `AZURE_IDENTITY`. Set
`namespaceName` and `eventhubName` unless `connectionString` is set. When no
position has been saved yet, it starts with the events that arrive after it
starts, not the older ones. It reads as the `$Default` consumer group, or as
the one in `consumerGroupName`, and each consumer group has its own saved
position. For each partition, it saves its [...]
required:
diff --git
a/library/camel-kamelets/src/main/resources/kamelets/azure-storage-blob-source.kamelet.yaml
b/library/camel-kamelets/src/main/resources/kamelets/azure-storage-blob-source.kamelet.yaml
index b9b9b1b49..8c5aa76e4 100644
---
a/library/camel-kamelets/src/main/resources/kamelets/azure-storage-blob-source.kamelet.yaml
+++
b/library/camel-kamelets/src/main/resources/kamelets/azure-storage-blob-source.kamelet.yaml
@@ -36,7 +36,7 @@ spec:
Use it to process files that another system drops into a container, such
as uploaded documents, exported reports or log files. To react to new blobs
through Event Grid events instead of reading the container over and over, use
`azure-storage-blob-event-based-source`.
- Output: the body is the content of the blob, as a stream of bytes. The
headers give the name of the blob (`CamelAzureStorageBlobBlobName`, with its
folder path), its type, content type, size, ETag and last-modified time.
+ Output: the body is the content of the blob, as a stream of bytes, and
the `Content-Type` header is `application/octet-stream`. The headers give the
name of the blob (`CamelAzureStorageBlobBlobName`, with its folder path), its
type, content type, size, ETag and last-modified time.
Good to know: blobs are kept after they are read, so the same blobs are
read again on every poll, every 500 milliseconds by default; set
`deleteAfterRead` to true to delete each blob once it has been processed, or
`moveAfterRead` to move it to another container. It reads all the blobs of the
container, those in virtual folders too, unless `prefix` or `regex` narrows
them down. With `deleteAfterRead`, the blob deleted is the one named in the
`CamelAzureStorageBlobBlobName` header wh [...]
required:
diff --git
a/library/camel-kamelets/src/main/resources/kamelets/azure-storage-datalake-source.kamelet.yaml
b/library/camel-kamelets/src/main/resources/kamelets/azure-storage-datalake-source.kamelet.yaml
index 717348a9b..294aa4181 100644
---
a/library/camel-kamelets/src/main/resources/kamelets/azure-storage-datalake-source.kamelet.yaml
+++
b/library/camel-kamelets/src/main/resources/kamelets/azure-storage-datalake-source.kamelet.yaml
@@ -36,7 +36,7 @@ spec:
Use it to process files that land in a data lake, such as exports or
reports. For plain blob containers, use `azure-storage-blob-source`, which can
also delete what it reads.
- Output: the body is the content of the file, as a stream of bytes. The
`CamelAzureStorageDataLakeFileName` header is the name of the file, and other
headers give its size, content type, ETag and last-modified time.
+ Output: the body is the content of the file, as a stream of bytes, and
the `Content-Type` header is `application/octet-stream`. The
`CamelAzureStorageDataLakeFileName` header is the name of the file, and other
headers give its size, content type, ETag and last-modified time.
Good to know: it neither deletes nor moves the files, so it reads all of
them again on every poll, every 500 milliseconds by default. It reads the files
at the top of the file system, or of `directoryName`; the files in directories
below are read only when `recursive` is true. `regex` keeps only the files
whose path matches, and `fileName` reads one file. Log in as an app
registration with `clientId`, `clientSecret` and `tenantId` (the default), or
with an account key (`accountKey` [...]
required:
diff --git
a/library/camel-kamelets/src/main/resources/kamelets/azure-storage-files-source.kamelet.yaml
b/library/camel-kamelets/src/main/resources/kamelets/azure-storage-files-source.kamelet.yaml
index 47275e0ec..0af8472fa 100644
---
a/library/camel-kamelets/src/main/resources/kamelets/azure-storage-files-source.kamelet.yaml
+++
b/library/camel-kamelets/src/main/resources/kamelets/azure-storage-files-source.kamelet.yaml
@@ -36,7 +36,7 @@ spec:
Use it to process files that people or applications put on a share, such
as scanned documents or exports. For blob containers, use
`azure-storage-blob-source`.
- Output: the body is the content of the file, which converts to text,
bytes or a stream. The `CamelFileName` header is the path of the file from
`directoryName`, `CamelFileNameOnly` its name, and `CamelFileLength` and
`CamelFileLastModified` its size and last-modified time.
+ Output: the body is the file, which converts to text, bytes or a stream,
and the `Content-Type` header is `application/octet-stream`. The
`CamelFileName` header is the path of the file from `directoryName`,
`CamelFileNameOnly` its name, and `CamelFileLength` and `CamelFileLastModified`
its size and last-modified time.
Good to know: files are kept after they are read, so the same files are
read again on every poll, every 500 milliseconds by default. To read each file
only once, set `deleteAfterRead` to true to delete it, set `move` to a
directory such as `.done` to move it, or set `noop` to true to leave it in
place and remember the files read, in memory or, with `idempotentRepository`,
across restarts. Subdirectories are read only when `recursive` is true.
`include` and `antInclude` read only th [...]
required:
diff --git
a/library/camel-kamelets/src/main/resources/kamelets/azure-storage-queue-source.kamelet.yaml
b/library/camel-kamelets/src/main/resources/kamelets/azure-storage-queue-source.kamelet.yaml
index 604a1c29e..8c9ed9dd2 100644
---
a/library/camel-kamelets/src/main/resources/kamelets/azure-storage-queue-source.kamelet.yaml
+++
b/library/camel-kamelets/src/main/resources/kamelets/azure-storage-queue-source.kamelet.yaml
@@ -36,7 +36,7 @@ spec:
Use it to process work that other applications put in a storage queue,
such as orders or jobs. For Service Bus queues and topics, use
`azure-servicebus-source`.
- Output: the body is the text of the queue message (as a stream). The
headers give its ID (`CamelAzureStorageQueueMessageId`), the times it was
inserted and expires, its pop receipt, and how many times it has been received
(`CamelAzureStorageQueueDequeueCount`).
+ Output: the body is the text of the queue message, as text, and the
`Content-Type` header is `text/plain`. The headers give its ID
(`CamelAzureStorageQueueMessageId`), the times it was inserted and expires, its
pop receipt, and how many times it has been received
(`CamelAzureStorageQueueDequeueCount`).
Good to know: a received message is hidden from other readers while it
is processed. When the processing fails, it stays in the queue and is received
again once that time is over, 30 seconds by default (`visibilityTimeout`), with
a higher dequeue count. The queue is checked for new messages every 500
milliseconds, unless `delay` says otherwise.
required:
diff --git
a/library/camel-kamelets/src/main/resources/kamelets/google-calendar-source.kamelet.yaml
b/library/camel-kamelets/src/main/resources/kamelets/google-calendar-source.kamelet.yaml
index 26a4a9b16..15195a4c2 100644
---
a/library/camel-kamelets/src/main/resources/kamelets/google-calendar-source.kamelet.yaml
+++
b/library/camel-kamelets/src/main/resources/kamelets/google-calendar-source.kamelet.yaml
@@ -35,7 +35,7 @@ spec:
Use it to act on calendar entries, for example to send a reminder before
a meeting, copy new appointments into another system, or notify a team when a
booking is made.
- Output: the body is the event as JSON text, with the fields of the
Google Calendar API such as `id`, `summary`, `start` and `attendees`. The
`CamelGoogleCalendarEventId` header gives the ID of the event.
+ Output: the body is the event as JSON text in bytes, with the
`Content-Type` header `application/json`, and with the fields of the Google
Calendar API such as `id`, `summary`, `start` and `attendees`. The
`CamelGoogleCalendarEventId` header gives the ID of the event.
Good to know: by default it only receives the events that have not ended
yet at the time of the poll (`consumeFromNow`). Each poll asks for one page of
up to `maxResults` events (10 by default), the events that changed least
recently first, so the same events can come again on every poll. With
`considerLastUpdate` set to true, each poll reads all the pages, and after the
first poll only the events that changed since the last one received. With
`syncFlow` set to true, each poll afte [...]
required:
diff --git
a/library/camel-kamelets/src/main/resources/kamelets/google-sheets-source.kamelet.yaml
b/library/camel-kamelets/src/main/resources/kamelets/google-sheets-source.kamelet.yaml
index b7ee02c8a..d9651d090 100644
---
a/library/camel-kamelets/src/main/resources/kamelets/google-sheets-source.kamelet.yaml
+++
b/library/camel-kamelets/src/main/resources/kamelets/google-sheets-source.kamelet.yaml
@@ -35,7 +35,7 @@ spec:
Use it to feed the content of a spreadsheet that people maintain, such
as a price list, a contact list or a list of tasks, to another system on a
schedule. To write rows to a spreadsheet, use `google-sheets-sink`.
- Output: with `range` set, the body is one row as JSON text, a JSON array
of the values of the row (or of one column, with `majorDimension` set to
`COLUMNS`), such as `["Alice","3"]`; with `splitResults` set to false, it is
the whole range as JSON text, with the rows in its `values` field. Without
`range`, the body is the description of the spreadsheet (its sheets and
properties) as JSON text, not its cells. The `CamelGoogleSheets.spreadsheetId`
and `CamelGoogleSheets.range` headers [...]
+ Output: with `range` set, the body is one row as JSON text, a JSON array
of the values of the row (or of one column, with `majorDimension` set to
`COLUMNS`), such as `["Alice","3"]`; with `splitResults` set to false, it is
the whole range as JSON text, with the rows in its `values` field. Without
`range`, the body is the description of the spreadsheet (its sheets and
properties) as JSON text, not its cells. The JSON text is in bytes, and the
`Content-Type` header is `application/js [...]
Good to know: every poll reads the whole range again, by default every
500 milliseconds, so the same rows come again and again until `repeatCount` is
reached; it does not track which rows are new. It logs in to Google either with
OAuth (an OAuth client of a Google Cloud project, and an access token and a
refresh token of a Google account that may read the spreadsheet), or with the
key of a service account in `serviceAccountKey` together with `scopes`; share
the spreadsheet with the [...]
required:
diff --git
a/library/camel-kamelets/src/main/resources/kamelets/google-storage-source.kamelet.yaml
b/library/camel-kamelets/src/main/resources/kamelets/google-storage-source.kamelet.yaml
index 8aacdd551..e0e136596 100644
---
a/library/camel-kamelets/src/main/resources/kamelets/google-storage-source.kamelet.yaml
+++
b/library/camel-kamelets/src/main/resources/kamelets/google-storage-source.kamelet.yaml
@@ -35,7 +35,7 @@ spec:
Use it to process files that another system drops into a bucket, such as
uploaded documents, exported reports or log files. To react to new files
through Pub/Sub notifications instead of reading the bucket over and over, use
`google-storage-event-based-source`.
- Output: the body is the content of the file, as a stream. The headers
give the bucket name (`CamelGoogleCloudStorageBucketName`), the object name,
that is the path of the file in the bucket
(`CamelGoogleCloudStorageObjectName`), the content type and the ETag of the
file.
+ Output: the body is the content of the file, as a stream, and the
`Content-Type` header is `application/octet-stream`. The headers give the
bucket name (`CamelGoogleCloudStorageBucketName`), the object name, that is the
path of the file in the bucket (`CamelGoogleCloudStorageObjectName`), the
content type and the ETag of the file.
Good to know: files are deleted from the bucket after they are read,
unless `deleteAfterRead` is set to false; then the same files are read again on
every poll, about twice a second, or every `delay` milliseconds. With
`moveAfterRead`, they are copied to `destinationBucket` first. A file whose
processing fails is not deleted or moved, and is read again on the next poll.
Without `serviceAccountKey`, it logs in with the Application Default
Credentials of the environment where it runs [...]
required:
diff --git
a/library/camel-kamelets/src/main/resources/kamelets/ibm-cos-source.kamelet.yaml
b/library/camel-kamelets/src/main/resources/kamelets/ibm-cos-source.kamelet.yaml
index 7a47bca30..7902b2050 100644
---
a/library/camel-kamelets/src/main/resources/kamelets/ibm-cos-source.kamelet.yaml
+++
b/library/camel-kamelets/src/main/resources/kamelets/ibm-cos-source.kamelet.yaml
@@ -36,7 +36,7 @@ spec:
Use it to process files that another system drops into a bucket, such as
uploaded documents, exported reports or log files. To upload files to a bucket,
use `ibm-cos-sink`.
- Output: the body is the content of the file, as a stream. The headers
give the bucket name (`CamelIBMCOSBucketName`), the key, that is the path of
the file in the bucket (`CamelIBMCOSKey`), the content type, the size and the
ETag of the file.
+ Output: the body is the content of the file, as a stream, and the
`Content-Type` header is `application/octet-stream`. The headers give the
bucket name (`CamelIBMCOSBucketName`), the key, that is the path of the file in
the bucket (`CamelIBMCOSKey`), the content type, the size and the ETag of the
file.
Good to know: files are deleted from the bucket after they are read,
unless `deleteAfterRead` is set to false; then the same files are read again on
every poll. `moveAfterRead` moves them to another bucket instead. To read one
file only, set `fileName`. A file whose processing fails is kept, and read
again on the next poll. It logs in with an IBM Cloud API key.
required:
diff --git
a/library/camel-kamelets/src/main/resources/kamelets/slack-source.kamelet.yaml
b/library/camel-kamelets/src/main/resources/kamelets/slack-source.kamelet.yaml
index 313e12bac..b9fc58cc0 100644
---
a/library/camel-kamelets/src/main/resources/kamelets/slack-source.kamelet.yaml
+++
b/library/camel-kamelets/src/main/resources/kamelets/slack-source.kamelet.yaml
@@ -35,7 +35,7 @@ spec:
Use it to react to what people write in a channel, for example to turn a
message in `#support` into a ticket, to archive a channel, or to start a job
when someone posts a command. To post to Slack instead, use `slack-sink`.
- Output: the body is the Slack message as JSON text, with fields such as
`text` (what was written), `user` (the ID of the author) and `ts` (the time
stamp that identifies the message). The `Content-Type` header is
`application/json`.
+ Output: the body is the Slack message as JSON text in bytes, with fields
such as `text` (what was written), `user` (the ID of the author) and `ts` (the
time stamp that identifies the message). The `Content-Type` header is
`application/json`.
Good to know: when it starts, it also sends the most recent message
already in the channel, then only the messages posted after it. It does not
remember where it stopped: after a restart it starts again from the most recent
message. It reads public channels only, by their name, and needs a token of a
Slack app, see `token`.
required:
diff --git
a/tests/camel-kamelets-itest/src/test/resources/aws/cloudtrail/aws-cloudtrail-source-route.citrus.it.yaml
b/tests/camel-kamelets-itest/src/test/resources/aws/cloudtrail/aws-cloudtrail-source-route.citrus.it.yaml
index 2d37032a3..fb9063b52 100644
---
a/tests/camel-kamelets-itest/src/test/resources/aws/cloudtrail/aws-cloudtrail-source-route.citrus.it.yaml
+++
b/tests/camel-kamelets-itest/src/test/resources/aws/cloudtrail/aws-cloudtrail-source-route.citrus.it.yaml
@@ -64,9 +64,9 @@ actions:
path: "/result"
headers:
- name: "X-Body-Type"
- value: '[B'
+ value: 'java.lang.String'
- name: "X-Content-Type"
- value: 'ct='
+ value: 'ct=text/plain'
- name: "X-Event-Id"
value: 'event-1'
- name: "X-Event-Name"
diff --git
a/tests/camel-kamelets-itest/src/test/resources/aws/ddb/aws-ddb-source-route.yaml
b/tests/camel-kamelets-itest/src/test/resources/aws/ddb/aws-ddb-source-route.yaml
index d02c29974..800184488 100644
---
a/tests/camel-kamelets-itest/src/test/resources/aws/ddb/aws-ddb-source-route.yaml
+++
b/tests/camel-kamelets-itest/src/test/resources/aws/ddb/aws-ddb-source-route.yaml
@@ -27,6 +27,8 @@
secretKey: "{{aws.ddb.secretKey}}"
region: "{{aws.ddb.region}}"
steps:
+ # What the Kamelet gives
+ - log: "Kamelet result: X-Body-Type=${body.getClass().getName()},
X-Content-Type=ct=${header.Content-Type};"
- to:
uri: "kamelet:log-sink"
parameters:
diff --git
a/tests/camel-kamelets-itest/src/test/resources/aws/ddb/aws-ddb-source.citrus.it.yaml
b/tests/camel-kamelets-itest/src/test/resources/aws/ddb/aws-ddb-source.citrus.it.yaml
index 29433de7d..1e3c8392b 100644
---
a/tests/camel-kamelets-itest/src/test/resources/aws/ddb/aws-ddb-source.citrus.it.yaml
+++
b/tests/camel-kamelets-itest/src/test/resources/aws/ddb/aws-ddb-source.citrus.it.yaml
@@ -65,3 +65,9 @@ actions:
integration: "aws-ddb-source-route"
logMessage: |
"Star Wars IV"
+ # What the Kamelet gives, before the consuming route
+ - camel:
+ cli:
+ verify:
+ integration: "aws-ddb-source-route"
+ logMessage: "Kamelet result: X-Body-Type=[B,
X-Content-Type=ct=application/json;"
diff --git
a/tests/camel-kamelets-itest/src/test/resources/aws/s3/aws-s3-source-route.yaml
b/tests/camel-kamelets-itest/src/test/resources/aws/s3/aws-s3-source-route.yaml
index 5ffc1f0ea..f6f3ea162 100644
---
a/tests/camel-kamelets-itest/src/test/resources/aws/s3/aws-s3-source-route.yaml
+++
b/tests/camel-kamelets-itest/src/test/resources/aws/s3/aws-s3-source-route.yaml
@@ -27,6 +27,8 @@
secretKey: "{{aws.s3.secretKey}}"
region: "{{aws.s3.region}}"
steps:
+ # What the Kamelet gives
+ - log: "Kamelet result: X-Body-Type=${body.getClass().getName()},
X-Content-Type=ct=${header.Content-Type};"
- to:
uri: "kamelet:log-sink"
parameters:
diff --git
a/tests/camel-kamelets-itest/src/test/resources/aws/s3/aws-s3-uri-pipe.citrus.it.yaml
b/tests/camel-kamelets-itest/src/test/resources/aws/s3/aws-s3-uri-pipe.citrus.it.yaml
index 84a5dbb32..f5ea1d351 100644
---
a/tests/camel-kamelets-itest/src/test/resources/aws/s3/aws-s3-uri-pipe.citrus.it.yaml
+++
b/tests/camel-kamelets-itest/src/test/resources/aws/s3/aws-s3-uri-pipe.citrus.it.yaml
@@ -76,3 +76,9 @@ actions:
verify:
integration: "aws-s3-source-route"
logMessage: "${aws.s3.message}"
+ # What the Kamelet gives, before the consuming route
+ - camel:
+ cli:
+ verify:
+ integration: "aws-s3-source-route"
+ logMessage: "Kamelet result: X-Body-Type=[B,
X-Content-Type=ct=application/octet-stream;"
diff --git
a/tests/camel-kamelets-itest/src/test/resources/aws/sqs/aws-sqs-source-route.yaml
b/tests/camel-kamelets-itest/src/test/resources/aws/sqs/aws-sqs-source-route.yaml
index 0313cd426..48a78659c 100644
---
a/tests/camel-kamelets-itest/src/test/resources/aws/sqs/aws-sqs-source-route.yaml
+++
b/tests/camel-kamelets-itest/src/test/resources/aws/sqs/aws-sqs-source-route.yaml
@@ -26,6 +26,8 @@
secretKey: "{{aws.sqs.secretKey}}"
region: "{{aws.sqs.region}}"
steps:
+ # What the Kamelet gives
+ - log: "Kamelet result: X-Body-Type=${body.getClass().getName()},
X-Content-Type=ct=${header.Content-Type};"
- to:
uri: "kamelet:log-sink"
parameters:
diff --git
a/tests/camel-kamelets-itest/src/test/resources/aws/sqs/aws-sqs-uri-pipe.citrus.it.yaml
b/tests/camel-kamelets-itest/src/test/resources/aws/sqs/aws-sqs-uri-pipe.citrus.it.yaml
index 72f1a6ea4..9ca49e894 100644
---
a/tests/camel-kamelets-itest/src/test/resources/aws/sqs/aws-sqs-uri-pipe.citrus.it.yaml
+++
b/tests/camel-kamelets-itest/src/test/resources/aws/sqs/aws-sqs-uri-pipe.citrus.it.yaml
@@ -69,3 +69,9 @@ actions:
verify:
integration: "aws-sqs-source-route"
logMessage: "${aws.sqs.message}"
+ # What the Kamelet gives, before the consuming route
+ - camel:
+ cli:
+ verify:
+ integration: "aws-sqs-source-route"
+ logMessage: "Kamelet result: X-Body-Type=java.lang.String,
X-Content-Type=ct=text/plain;"
diff --git
a/tests/camel-kamelets-itest/src/test/resources/azure/azure-cosmosdb-source-route.citrus.it.yaml
b/tests/camel-kamelets-itest/src/test/resources/azure/azure-cosmosdb-source-route.citrus.it.yaml
index 43d9bb06a..2cdccf951 100644
---
a/tests/camel-kamelets-itest/src/test/resources/azure/azure-cosmosdb-source-route.citrus.it.yaml
+++
b/tests/camel-kamelets-itest/src/test/resources/azure/azure-cosmosdb-source-route.citrus.it.yaml
@@ -61,7 +61,7 @@ actions:
type: "json"
headers:
- name: "X-Body-Type"
- value: 'org.apache.camel.converter.stream.InputStreamCache'
+ value: '[B'
- name: "X-Content-Type"
value: 'ct=application/json'
body:
diff --git
a/tests/camel-kamelets-itest/src/test/resources/azure/azure-eventhubs-source-route.citrus.it.yaml
b/tests/camel-kamelets-itest/src/test/resources/azure/azure-eventhubs-source-route.citrus.it.yaml
index 9bfa610ae..ba169cad6 100644
---
a/tests/camel-kamelets-itest/src/test/resources/azure/azure-eventhubs-source-route.citrus.it.yaml
+++
b/tests/camel-kamelets-itest/src/test/resources/azure/azure-eventhubs-source-route.citrus.it.yaml
@@ -50,7 +50,7 @@ actions:
- name: "X-Body-Type"
value: '[B'
- name: "X-Content-Type"
- value: 'ct='
+ value: 'ct=application/octet-stream'
- name: "X-Partition-Id"
value: '0'
- name: "X-Sequence-Number"
diff --git
a/tests/camel-kamelets-itest/src/test/resources/azure/azure-eventhubs-source-route.yaml
b/tests/camel-kamelets-itest/src/test/resources/azure/azure-eventhubs-source-route.yaml
index 3dfb3db54..4de77d517 100644
---
a/tests/camel-kamelets-itest/src/test/resources/azure/azure-eventhubs-source-route.yaml
+++
b/tests/camel-kamelets-itest/src/test/resources/azure/azure-eventhubs-source-route.yaml
@@ -59,7 +59,9 @@
- setHeader:
name: X-Metadata
simple: "${header.CamelAzureEventHubsMetadata}"
- # the body as text, for the HTTP call
+ # the body as text, for the HTTP call: Citrus reads an
application/octet-stream body as a byte array
+ - removeHeader:
+ name: Content-Type
- convertBodyTo:
type: "java.lang.String"
- to:
diff --git
a/tests/camel-kamelets-itest/src/test/resources/azure/azure-storage-blob-source-route.citrus.it.yaml
b/tests/camel-kamelets-itest/src/test/resources/azure/azure-storage-blob-source-route.citrus.it.yaml
index cb5a6c42e..e24a6ad43 100644
---
a/tests/camel-kamelets-itest/src/test/resources/azure/azure-storage-blob-source-route.citrus.it.yaml
+++
b/tests/camel-kamelets-itest/src/test/resources/azure/azure-storage-blob-source-route.citrus.it.yaml
@@ -101,7 +101,7 @@ actions:
- name: "X-Body-Type"
value: 'org.apache.camel.converter.stream.InputStreamCache'
- name: "X-Content-Type"
- value: 'ct='
+ value: 'ct=application/octet-stream'
- name: "X-Blob-Name"
value: 'in/order-1.txt'
- name: "X-Blob-Content-Type"
diff --git
a/tests/camel-kamelets-itest/src/test/resources/azure/azure-storage-blob-source-route.yaml
b/tests/camel-kamelets-itest/src/test/resources/azure/azure-storage-blob-source-route.yaml
index 2f1f3aa62..08d9c036b 100644
---
a/tests/camel-kamelets-itest/src/test/resources/azure/azure-storage-blob-source-route.yaml
+++
b/tests/camel-kamelets-itest/src/test/resources/azure/azure-storage-blob-source-route.yaml
@@ -40,7 +40,9 @@
- setHeader:
name: X-Blob-Type
simple: "${header.CamelAzureStorageBlobBlobType}"
- # the body as text, for the HTTP call
+ # the body as text, for the HTTP call: Citrus reads an
application/octet-stream body as a byte array
+ - removeHeader:
+ name: Content-Type
- convertBodyTo:
type: "java.lang.String"
- to:
diff --git
a/tests/camel-kamelets-itest/src/test/resources/azure/azure-storage-datalake-source-route.citrus.it.yaml
b/tests/camel-kamelets-itest/src/test/resources/azure/azure-storage-datalake-source-route.citrus.it.yaml
index b455a4457..5b8dea9de 100644
---
a/tests/camel-kamelets-itest/src/test/resources/azure/azure-storage-datalake-source-route.citrus.it.yaml
+++
b/tests/camel-kamelets-itest/src/test/resources/azure/azure-storage-datalake-source-route.citrus.it.yaml
@@ -100,7 +100,7 @@ actions:
- name: "X-Body-Type"
value: 'org.apache.camel.converter.stream.InputStreamCache'
- name: "X-Content-Type"
- value: 'ct='
+ value: 'ct=application/octet-stream'
- name: "X-File-Name"
value: 'in/order-1.txt'
body:
diff --git
a/tests/camel-kamelets-itest/src/test/resources/azure/azure-storage-datalake-source-route.yaml
b/tests/camel-kamelets-itest/src/test/resources/azure/azure-storage-datalake-source-route.yaml
index 2be6a0235..37e917cdc 100644
---
a/tests/camel-kamelets-itest/src/test/resources/azure/azure-storage-datalake-source-route.yaml
+++
b/tests/camel-kamelets-itest/src/test/resources/azure/azure-storage-datalake-source-route.yaml
@@ -34,7 +34,9 @@
- setHeader:
name: X-File-Name
simple: "${header.CamelAzureStorageDataLakeFileName}"
- # the body as text, for the HTTP call
+ # the body as text, for the HTTP call: Citrus reads an
application/octet-stream body as a byte array
+ - removeHeader:
+ name: Content-Type
- convertBodyTo:
type: "java.lang.String"
- to:
diff --git
a/tests/camel-kamelets-itest/src/test/resources/azure/azure-storage-queue-source-route.citrus.it.yaml
b/tests/camel-kamelets-itest/src/test/resources/azure/azure-storage-queue-source-route.citrus.it.yaml
index 96e17b02e..27ab07fee 100644
---
a/tests/camel-kamelets-itest/src/test/resources/azure/azure-storage-queue-source-route.citrus.it.yaml
+++
b/tests/camel-kamelets-itest/src/test/resources/azure/azure-storage-queue-source-route.citrus.it.yaml
@@ -93,9 +93,9 @@ actions:
type: "plaintext"
headers:
- name: "X-Body-Type"
- value:
'org.apache.camel.converter.stream.ByteArrayInputStreamCache'
+ value: 'java.lang.String'
- name: "X-Content-Type"
- value: 'ct='
+ value: 'ct=text/plain'
- name: "X-Message-Id"
value: '@matches([0-9a-f-]{36})@'
- name: "X-Dequeue-Count"
diff --git
a/tests/camel-kamelets-itest/src/test/resources/google/google-storage-source-route.citrus.it.yaml
b/tests/camel-kamelets-itest/src/test/resources/google/google-storage-source-route.citrus.it.yaml
index d9d6c2a1b..40184cbc2 100644
---
a/tests/camel-kamelets-itest/src/test/resources/google/google-storage-source-route.citrus.it.yaml
+++
b/tests/camel-kamelets-itest/src/test/resources/google/google-storage-source-route.citrus.it.yaml
@@ -99,7 +99,7 @@ actions:
- name: "X-Body-Type"
value: 'org.apache.camel.converter.stream.InputStreamCache'
- name: "X-Content-Type"
- value: 'ct='
+ value: 'ct=application/octet-stream'
- name: "X-Bucket-Name"
value: 'kamelets-orders'
- name: "X-Object-Name"
diff --git
a/tests/camel-kamelets-itest/src/test/resources/google/google-storage-source-route.yaml
b/tests/camel-kamelets-itest/src/test/resources/google/google-storage-source-route.yaml
index 65b8d9b97..86b71bf4f 100644
---
a/tests/camel-kamelets-itest/src/test/resources/google/google-storage-source-route.yaml
+++
b/tests/camel-kamelets-itest/src/test/resources/google/google-storage-source-route.yaml
@@ -38,7 +38,9 @@
- setHeader:
name: X-Object-Content-Type
simple: "${header.CamelGoogleCloudStorageContentType}"
- # the body as text, for the HTTP call
+ # the body as text, for the HTTP call: Citrus reads an
application/octet-stream body as a byte array
+ - removeHeader:
+ name: Content-Type
- convertBodyTo:
type: "java.lang.String"
- to:
diff --git
a/tests/camel-kamelets-itest/src/test/resources/ibmcos/ibm-cos-source-route.citrus.it.yaml
b/tests/camel-kamelets-itest/src/test/resources/ibmcos/ibm-cos-source-route.citrus.it.yaml
index 65a21c3fb..04b8a484b 100644
---
a/tests/camel-kamelets-itest/src/test/resources/ibmcos/ibm-cos-source-route.citrus.it.yaml
+++
b/tests/camel-kamelets-itest/src/test/resources/ibmcos/ibm-cos-source-route.citrus.it.yaml
@@ -83,7 +83,7 @@ actions:
- name: "X-Body-Type"
value: 'org.apache.camel.converter.stream.InputStreamCache'
- name: "X-Content-Type"
- value: 'ct='
+ value: 'ct=application/octet-stream'
- name: "X-Bucket"
value: '${s3.bucket}'
- name: "X-Key"
diff --git
a/tests/camel-kamelets-itest/src/test/resources/ibmcos/ibm-cos-source-route.yaml
b/tests/camel-kamelets-itest/src/test/resources/ibmcos/ibm-cos-source-route.yaml
index e49708ec9..5c424365b 100644
---
a/tests/camel-kamelets-itest/src/test/resources/ibmcos/ibm-cos-source-route.yaml
+++
b/tests/camel-kamelets-itest/src/test/resources/ibmcos/ibm-cos-source-route.yaml
@@ -48,5 +48,10 @@
- setHeader:
name: X-ETag
simple: "${header.CamelIBMCOSETag}"
+ # the body as text, for the HTTP call: Citrus reads an
application/octet-stream body as a byte array
+ - removeHeader:
+ name: Content-Type
+ - convertBodyTo:
+ type: "java.lang.String"
- to:
uri: "{{http.sink.url}}/result"
diff --git
a/tests/camel-kamelets-itest/src/test/resources/slack/slack-source-route.citrus.it.yaml
b/tests/camel-kamelets-itest/src/test/resources/slack/slack-source-route.citrus.it.yaml
index d14b5f3a7..f5e0f4da2 100644
---
a/tests/camel-kamelets-itest/src/test/resources/slack/slack-source-route.citrus.it.yaml
+++
b/tests/camel-kamelets-itest/src/test/resources/slack/slack-source-route.citrus.it.yaml
@@ -126,3 +126,9 @@ actions:
verify:
integration: "slack-source-route"
logMessage: "${slack.message}"
+ # What the Kamelet gives, before the consuming route
+ - camel:
+ cli:
+ verify:
+ integration: "slack-source-route"
+ logMessage: "Kamelet result: X-Body-Type=[B,
X-Content-Type=ct=application/json;"
diff --git
a/tests/camel-kamelets-itest/src/test/resources/slack/slack-source-route.yaml
b/tests/camel-kamelets-itest/src/test/resources/slack/slack-source-route.yaml
index 24438c9c4..ab9813c51 100644
---
a/tests/camel-kamelets-itest/src/test/resources/slack/slack-source-route.yaml
+++
b/tests/camel-kamelets-itest/src/test/resources/slack/slack-source-route.yaml
@@ -23,5 +23,7 @@
channel: '{{slack.channel}}'
token: '{{slack.token}}'
steps:
+ # What the Kamelet gives
+ - log: "Kamelet result: X-Body-Type=${body.getClass().getName()},
X-Content-Type=ct=${header.Content-Type};"
- to:
uri: "kamelet:log-sink"