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 7938de487 chore: the CloudEvent source is the queue, container, file
system, share or calendar (CAMEL-27101, CAMEL-27538) (#3397)
7938de487 is described below
commit 7938de487f21835b6dda5434e95c1255bafd6711
Author: Claus Ibsen <[email protected]>
AuthorDate: Wed Nov 25 13:55:44 2026 +0100
chore: the CloudEvent source is the queue, container, file system, share or
calendar (CAMEL-27101, CAMEL-27538) (#3397)
* chore: the CloudEvent source is the queue, container, file system or
calendar (CAMEL-27101)
Since CAMEL-27101 (Camel 4.24) the application-cloudevents data types of
azure-storage-queue, azure-storage-blob, azure-storage-datalake and
google-calendar-stream use the queue, container, file system or calendar
the message was read from as the CloudEvent source, not a value of each
message. Update the descriptions of the four source Kamelets, and list the
new consumer headers in seven source Kamelets: ConsumedQueueName,
ConsumedContainerName, ConsumedFileSystemName, CalendarId,
TopicOrQueueName, StreamName and SubscriptionName.
The source tests of queue, blob, datalake, servicebus, kinesis and pubsub
check the new header; the three storage tests also check the CloudEvent
source with data-type-action. They need a Camel 4.24.0-SNAPSHOT with
CAMEL-27101.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* chore: the library copy of the seven Kamelets, and their header counts in
KameletsCatalogTest
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* chore: azure-storage-files-source - the CloudEvent source is the share
(CAMEL-27538)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* chore: blob and datalake source tests - the CloudEvent step before the
Content-Type is removed for the HTTP call
Co-Authored-By: Claude Opus 5.5 <[email protected]>
---------
Co-authored-by: Claude Opus 5.5 <[email protected]>
---
.../ROOT/partials/google-calendar-source-description.adoc | 3 ++-
kamelets/aws-kinesis-source.kamelet.yaml | 4 ++++
kamelets/azure-servicebus-source.kamelet.yaml | 4 ++++
kamelets/azure-storage-blob-source.kamelet.yaml | 6 +++++-
kamelets/azure-storage-datalake-source.kamelet.yaml | 6 +++++-
kamelets/azure-storage-files-source.kamelet.yaml | 6 +++++-
kamelets/azure-storage-queue-source.kamelet.yaml | 6 +++++-
kamelets/google-calendar-source.kamelet.yaml | 6 +++++-
kamelets/google-pubsub-source.kamelet.yaml | 4 ++++
.../apache/camel/kamelets/catalog/KameletsCatalogTest.java | 12 ++++++------
.../main/resources/kamelets/aws-kinesis-source.kamelet.yaml | 4 ++++
.../resources/kamelets/azure-servicebus-source.kamelet.yaml | 4 ++++
.../kamelets/azure-storage-blob-source.kamelet.yaml | 6 +++++-
.../kamelets/azure-storage-datalake-source.kamelet.yaml | 6 +++++-
.../kamelets/azure-storage-files-source.kamelet.yaml | 6 +++++-
.../kamelets/azure-storage-queue-source.kamelet.yaml | 6 +++++-
.../resources/kamelets/google-calendar-source.kamelet.yaml | 6 +++++-
.../resources/kamelets/google-pubsub-source.kamelet.yaml | 4 ++++
.../test/resources/aws/kinesis/aws-kinesis-source-route.yaml | 2 +-
.../resources/aws/kinesis/aws-kinesis-source.citrus.it.yaml | 2 +-
.../azure/azure-servicebus-source-route.citrus.it.yaml | 2 ++
.../test/resources/azure/azure-servicebus-source-route.yaml | 3 +++
.../azure/azure-storage-blob-source-route.citrus.it.yaml | 4 ++++
.../resources/azure/azure-storage-blob-source-route.yaml | 12 ++++++++++++
.../azure/azure-storage-datalake-source-route.citrus.it.yaml | 4 ++++
.../resources/azure/azure-storage-datalake-source-route.yaml | 12 ++++++++++++
.../azure/azure-storage-queue-source-route.citrus.it.yaml | 4 ++++
.../resources/azure/azure-storage-queue-source-route.yaml | 12 ++++++++++++
.../google/google-pubsub-source-route.citrus.it.yaml | 2 ++
.../test/resources/google/google-pubsub-source-route.yaml | 3 +++
30 files changed, 142 insertions(+), 19 deletions(-)
diff --git a/docs/modules/ROOT/partials/google-calendar-source-description.adoc
b/docs/modules/ROOT/partials/google-calendar-source-description.adoc
index 82060088e..9aa86ee12 100644
--- a/docs/modules/ROOT/partials/google-calendar-source-description.adoc
+++ b/docs/modules/ROOT/partials/google-calendar-source-description.adoc
@@ -21,11 +21,12 @@ The Kamelet produces calendar event data in JSON format. It
supports two output
When processing calendar events, the following headers are set:
- `CamelGoogleCalendarEventId`: The calendar event id
+- `CamelGoogleCalendarCalendarId`: The ID of the calendar the event is from
For CloudEvents output format, additional headers are set:
- `CamelCloudEventID`: The Camel exchange id set as event id
- `CamelCloudEventType`: The event type (default:
"org.apache.camel.event.google.calendar.stream.consume")
-- `CamelCloudEventSource`: The event source (Calendar Event Id with prefix
"google.calendar.stream.")
+- `CamelCloudEventSource`: The event source (the calendar ID set in
`calendarId` with prefix "google.calendar.stream.")
- `CamelCloudEventSubject`: The event subject (Calendar event type)
- `CamelCloudEventTime`: The exchange creation timestamp as event time
diff --git a/kamelets/aws-kinesis-source.kamelet.yaml
b/kamelets/aws-kinesis-source.kamelet.yaml
index 3590e424b..64207ed6f 100644
--- a/kamelets/aws-kinesis-source.kamelet.yaml
+++ b/kamelets/aws-kinesis-source.kamelet.yaml
@@ -199,6 +199,10 @@ spec:
title: Partition Key
description: The partition key of the record.
type: string
+ CamelAwsKinesisStreamName:
+ title: Stream Name
+ description: The name of the stream the record was read from, as set
in `stream`.
+ type: string
CamelAwsKinesisSequenceNumber:
title: Sequence Number
description: The sequence number of the record in its shard.
diff --git a/kamelets/azure-servicebus-source.kamelet.yaml
b/kamelets/azure-servicebus-source.kamelet.yaml
index abc2bf57f..a44dbf697 100644
--- a/kamelets/azure-servicebus-source.kamelet.yaml
+++ b/kamelets/azure-servicebus-source.kamelet.yaml
@@ -134,6 +134,10 @@ spec:
title: Message ID
description: The ID of the message.
type: string
+ CamelAzureServiceBusTopicOrQueueName:
+ title: Topic or Queue Name
+ description: The name of the queue or topic the message was received
from, as set in `topicOrQueueName`.
+ type: string
CamelAzureServiceBusApplicationProperties:
title: Application Properties
description: The custom properties of the message, as a Map.
diff --git a/kamelets/azure-storage-blob-source.kamelet.yaml
b/kamelets/azure-storage-blob-source.kamelet.yaml
index c8e0e789f..2b9bbe38c 100644
--- a/kamelets/azure-storage-blob-source.kamelet.yaml
+++ b/kamelets/azure-storage-blob-source.kamelet.yaml
@@ -142,6 +142,10 @@ spec:
title: Blob Name
description: The name of the blob, with its virtual folder path,
such as `in/report.csv`.
type: string
+ CamelAzureStorageBlobConsumedContainerName:
+ title: Container Name
+ description: The name of the container the blob was read from, as
set in `containerName`.
+ type: string
CamelAzureStorageBlobBlobType:
title: Blob Type
description: The type of the blob, such as `BlockBlob` or
`AppendBlob`.
@@ -191,7 +195,7 @@ spec:
type: string
CamelCloudEventSource:
title: CloudEvent Source
- description: The event source. By default, the E Tag name of the
blob with prefix "azure.storage.blob.".
+ description: The event source, which is the name of the
container with the prefix "azure.storage.blob.", such as
`azure.storage.blob.invoices`.
type: string
CamelCloudEventSubject:
title: CloudEvent Subject
diff --git a/kamelets/azure-storage-datalake-source.kamelet.yaml
b/kamelets/azure-storage-datalake-source.kamelet.yaml
index a40252555..10efc6444 100644
--- a/kamelets/azure-storage-datalake-source.kamelet.yaml
+++ b/kamelets/azure-storage-datalake-source.kamelet.yaml
@@ -138,6 +138,10 @@ spec:
title: Azure Storage Datalake File Name
description: The name of the file retrieved
type: string
+ CamelAzureStorageDataLakeConsumedFileSystemName:
+ title: File System Name
+ description: The name of the file system the file was read from, as
set in `fileSystemName`.
+ type: string
CamelAzureStorageDataLakeRawHttpHeaders:
title: Azure Storage Data Lake Raw Http Headers
description: Non parsed http headers that can be used by the user.
@@ -258,7 +262,7 @@ spec:
type: string
CamelCloudEventSource:
title: CloudEvent Source
- description: The event source. By default, the Archive Status of
the file with prefix "azure.storage.datalake.".
+ description: The event source, which is the name of the file
system with the prefix "azure.storage.datalake.", such as
`azure.storage.datalake.reports`.
type: string
CamelCloudEventSubject:
title: CloudEvent Subject
diff --git a/kamelets/azure-storage-files-source.kamelet.yaml
b/kamelets/azure-storage-files-source.kamelet.yaml
index 0af8472fa..72059f066 100644
--- a/kamelets/azure-storage-files-source.kamelet.yaml
+++ b/kamelets/azure-storage-files-source.kamelet.yaml
@@ -127,6 +127,10 @@ spec:
title: Azure Storage Files File Length
description: A long value containing the file size
type: long
+ CamelAzureFilesShareName:
+ title: Azure Storage Files Share Name
+ description: The name of the share the file was read from, as set in
`shareName`.
+ type: string
CamelFileLastModified:
title: Azure Storage Files File Last Modified Date
description: A Long value containing the last modified timestamp of
the file.
@@ -192,7 +196,7 @@ spec:
type: string
CamelCloudEventSource:
title: CloudEvent Source
- description: The event source. By default, the Host name of the
share with prefix "azure.storage.files.".
+ description: The event source, which is the name of the share
with the prefix "azure.storage.files.", such as `azure.storage.files.scans`.
type: string
CamelCloudEventSubject:
title: CloudEvent Subject
diff --git a/kamelets/azure-storage-queue-source.kamelet.yaml
b/kamelets/azure-storage-queue-source.kamelet.yaml
index 711b58f3f..9ab078e36 100644
--- a/kamelets/azure-storage-queue-source.kamelet.yaml
+++ b/kamelets/azure-storage-queue-source.kamelet.yaml
@@ -95,6 +95,10 @@ spec:
title: Azure Storage Queue Message Id
description: The id of the message.
type: string
+ CamelAzureStorageQueueConsumedQueueName:
+ title: Queue Name
+ description: The name of the queue the message was read from, as set
in `queueName`.
+ type: string
CamelAzureStorageQueueInsertionTime:
title: Azure Storage Queue Message Insertion Time
description: The time the Message was inserted into the Queue.
@@ -135,7 +139,7 @@ spec:
type: string
CamelCloudEventSource:
title: CloudEvent Source
- description: The event source. By default, the Message Id of the
message received with prefix "azure.storage.queue.".
+ description: The event source, which is the name of the queue
with the prefix "azure.storage.queue.", such as `azure.storage.queue.orders`.
type: string
CamelCloudEventSubject:
title: CloudEvent Subject
diff --git a/kamelets/google-calendar-source.kamelet.yaml
b/kamelets/google-calendar-source.kamelet.yaml
index 15195a4c2..2ffc45e0c 100644
--- a/kamelets/google-calendar-source.kamelet.yaml
+++ b/kamelets/google-calendar-source.kamelet.yaml
@@ -147,6 +147,10 @@ spec:
title: Event ID
description: The ID of the calendar event.
type: string
+ CamelGoogleCalendarCalendarId:
+ title: Calendar ID
+ description: The ID of the calendar the event is from, as set in
`calendarId`.
+ type: string
types:
json:
format: "application-json"
@@ -167,7 +171,7 @@ spec:
type: string
CamelCloudEventSource:
title: CloudEvent Source
- description: The event source. By default, the Calendar Event Id
with prefix "google.calendar.stream.".
+ description: The event source, which is the calendar ID set in
`calendarId` with the prefix "google.calendar.stream.", such as
`google.calendar.stream.primary`.
type: string
CamelCloudEventSubject:
title: CloudEvent Subject
diff --git a/kamelets/google-pubsub-source.kamelet.yaml
b/kamelets/google-pubsub-source.kamelet.yaml
index 7b6bd819f..c47f2a9ae 100644
--- a/kamelets/google-pubsub-source.kamelet.yaml
+++ b/kamelets/google-pubsub-source.kamelet.yaml
@@ -104,6 +104,10 @@ spec:
title: Message ID
description: The ID that Pub/Sub gave the message.
type: string
+ CamelGooglePubsubSubscriptionName:
+ title: Subscription Name
+ description: The name of the subscription the message was received
from, as set in `subscriptionName`.
+ type: string
CamelGooglePubsubPublishTime:
title: Publish Time
description: When the message was published to the topic.
diff --git
a/library/camel-kamelets-catalog/src/test/java/org/apache/camel/kamelets/catalog/KameletsCatalogTest.java
b/library/camel-kamelets-catalog/src/test/java/org/apache/camel/kamelets/catalog/KameletsCatalogTest.java
index 7939b65cb..b2f9ba649 100644
---
a/library/camel-kamelets-catalog/src/test/java/org/apache/camel/kamelets/catalog/KameletsCatalogTest.java
+++
b/library/camel-kamelets-catalog/src/test/java/org/apache/camel/kamelets/catalog/KameletsCatalogTest.java
@@ -209,12 +209,12 @@ public class KameletsCatalogTest {
verifyHeaders("aws-not-exists", 0);
verifyHeaders("azure-eventhubs-sink", 2);
verifyHeaders("azure-functions-sink", 8);
- verifyHeaders("azure-servicebus-source", 10);
- verifyHeaders("azure-storage-blob-source", 8);
+ verifyHeaders("azure-servicebus-source", 11);
+ verifyHeaders("azure-storage-blob-source", 9);
verifyHeaders("azure-storage-blob-sink", 2);
- verifyHeaders("azure-storage-datalake-source", 26);
+ verifyHeaders("azure-storage-datalake-source", 27);
verifyHeaders("azure-storage-datalake-sink", 2);
- verifyHeaders("azure-storage-queue-source", 6);
+ verifyHeaders("azure-storage-queue-source", 7);
verifyHeaders("azure-storage-queue-sink", 2);
verifyHeaders("cassandra-sink", 1);
verifyHeaders("couchbase-sink", 1);
@@ -232,10 +232,10 @@ public class KameletsCatalogTest {
verifyHeaders("github-pullrequest-source", 2);
verifyHeaders("github-tag-source", 7);
verifyHeaders("google-bigquery-sink", 4);
- verifyHeaders("google-calendar-source", 1);
+ verifyHeaders("google-calendar-source", 2);
verifyHeaders("google-mail-source", 6);
verifyHeaders("google-pubsub-sink", 2);
- verifyHeaders("google-pubsub-source", 5);
+ verifyHeaders("google-pubsub-source", 6);
verifyHeaders("google-sheets-source", 5);
verifyHeaders("google-storage-source", 4);
verifyHeaders("google-storage-sink", 3);
diff --git
a/library/camel-kamelets/src/main/resources/kamelets/aws-kinesis-source.kamelet.yaml
b/library/camel-kamelets/src/main/resources/kamelets/aws-kinesis-source.kamelet.yaml
index 3590e424b..64207ed6f 100644
---
a/library/camel-kamelets/src/main/resources/kamelets/aws-kinesis-source.kamelet.yaml
+++
b/library/camel-kamelets/src/main/resources/kamelets/aws-kinesis-source.kamelet.yaml
@@ -199,6 +199,10 @@ spec:
title: Partition Key
description: The partition key of the record.
type: string
+ CamelAwsKinesisStreamName:
+ title: Stream Name
+ description: The name of the stream the record was read from, as set
in `stream`.
+ type: string
CamelAwsKinesisSequenceNumber:
title: Sequence Number
description: The sequence number of the record in its shard.
diff --git
a/library/camel-kamelets/src/main/resources/kamelets/azure-servicebus-source.kamelet.yaml
b/library/camel-kamelets/src/main/resources/kamelets/azure-servicebus-source.kamelet.yaml
index abc2bf57f..a44dbf697 100644
---
a/library/camel-kamelets/src/main/resources/kamelets/azure-servicebus-source.kamelet.yaml
+++
b/library/camel-kamelets/src/main/resources/kamelets/azure-servicebus-source.kamelet.yaml
@@ -134,6 +134,10 @@ spec:
title: Message ID
description: The ID of the message.
type: string
+ CamelAzureServiceBusTopicOrQueueName:
+ title: Topic or Queue Name
+ description: The name of the queue or topic the message was received
from, as set in `topicOrQueueName`.
+ type: string
CamelAzureServiceBusApplicationProperties:
title: Application Properties
description: The custom properties of the message, as a Map.
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 c8e0e789f..2b9bbe38c 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
@@ -142,6 +142,10 @@ spec:
title: Blob Name
description: The name of the blob, with its virtual folder path,
such as `in/report.csv`.
type: string
+ CamelAzureStorageBlobConsumedContainerName:
+ title: Container Name
+ description: The name of the container the blob was read from, as
set in `containerName`.
+ type: string
CamelAzureStorageBlobBlobType:
title: Blob Type
description: The type of the blob, such as `BlockBlob` or
`AppendBlob`.
@@ -191,7 +195,7 @@ spec:
type: string
CamelCloudEventSource:
title: CloudEvent Source
- description: The event source. By default, the E Tag name of the
blob with prefix "azure.storage.blob.".
+ description: The event source, which is the name of the
container with the prefix "azure.storage.blob.", such as
`azure.storage.blob.invoices`.
type: string
CamelCloudEventSubject:
title: CloudEvent Subject
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 a40252555..10efc6444 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
@@ -138,6 +138,10 @@ spec:
title: Azure Storage Datalake File Name
description: The name of the file retrieved
type: string
+ CamelAzureStorageDataLakeConsumedFileSystemName:
+ title: File System Name
+ description: The name of the file system the file was read from, as
set in `fileSystemName`.
+ type: string
CamelAzureStorageDataLakeRawHttpHeaders:
title: Azure Storage Data Lake Raw Http Headers
description: Non parsed http headers that can be used by the user.
@@ -258,7 +262,7 @@ spec:
type: string
CamelCloudEventSource:
title: CloudEvent Source
- description: The event source. By default, the Archive Status of
the file with prefix "azure.storage.datalake.".
+ description: The event source, which is the name of the file
system with the prefix "azure.storage.datalake.", such as
`azure.storage.datalake.reports`.
type: string
CamelCloudEventSubject:
title: CloudEvent Subject
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 0af8472fa..72059f066 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
@@ -127,6 +127,10 @@ spec:
title: Azure Storage Files File Length
description: A long value containing the file size
type: long
+ CamelAzureFilesShareName:
+ title: Azure Storage Files Share Name
+ description: The name of the share the file was read from, as set in
`shareName`.
+ type: string
CamelFileLastModified:
title: Azure Storage Files File Last Modified Date
description: A Long value containing the last modified timestamp of
the file.
@@ -192,7 +196,7 @@ spec:
type: string
CamelCloudEventSource:
title: CloudEvent Source
- description: The event source. By default, the Host name of the
share with prefix "azure.storage.files.".
+ description: The event source, which is the name of the share
with the prefix "azure.storage.files.", such as `azure.storage.files.scans`.
type: string
CamelCloudEventSubject:
title: CloudEvent Subject
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 711b58f3f..9ab078e36 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
@@ -95,6 +95,10 @@ spec:
title: Azure Storage Queue Message Id
description: The id of the message.
type: string
+ CamelAzureStorageQueueConsumedQueueName:
+ title: Queue Name
+ description: The name of the queue the message was read from, as set
in `queueName`.
+ type: string
CamelAzureStorageQueueInsertionTime:
title: Azure Storage Queue Message Insertion Time
description: The time the Message was inserted into the Queue.
@@ -135,7 +139,7 @@ spec:
type: string
CamelCloudEventSource:
title: CloudEvent Source
- description: The event source. By default, the Message Id of the
message received with prefix "azure.storage.queue.".
+ description: The event source, which is the name of the queue
with the prefix "azure.storage.queue.", such as `azure.storage.queue.orders`.
type: string
CamelCloudEventSubject:
title: CloudEvent Subject
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 15195a4c2..2ffc45e0c 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
@@ -147,6 +147,10 @@ spec:
title: Event ID
description: The ID of the calendar event.
type: string
+ CamelGoogleCalendarCalendarId:
+ title: Calendar ID
+ description: The ID of the calendar the event is from, as set in
`calendarId`.
+ type: string
types:
json:
format: "application-json"
@@ -167,7 +171,7 @@ spec:
type: string
CamelCloudEventSource:
title: CloudEvent Source
- description: The event source. By default, the Calendar Event Id
with prefix "google.calendar.stream.".
+ description: The event source, which is the calendar ID set in
`calendarId` with the prefix "google.calendar.stream.", such as
`google.calendar.stream.primary`.
type: string
CamelCloudEventSubject:
title: CloudEvent Subject
diff --git
a/library/camel-kamelets/src/main/resources/kamelets/google-pubsub-source.kamelet.yaml
b/library/camel-kamelets/src/main/resources/kamelets/google-pubsub-source.kamelet.yaml
index 7b6bd819f..c47f2a9ae 100644
---
a/library/camel-kamelets/src/main/resources/kamelets/google-pubsub-source.kamelet.yaml
+++
b/library/camel-kamelets/src/main/resources/kamelets/google-pubsub-source.kamelet.yaml
@@ -104,6 +104,10 @@ spec:
title: Message ID
description: The ID that Pub/Sub gave the message.
type: string
+ CamelGooglePubsubSubscriptionName:
+ title: Subscription Name
+ description: The name of the subscription the message was received
from, as set in `subscriptionName`.
+ type: string
CamelGooglePubsubPublishTime:
title: Publish Time
description: When the message was published to the topic.
diff --git
a/tests/camel-kamelets-itest/src/test/resources/aws/kinesis/aws-kinesis-source-route.yaml
b/tests/camel-kamelets-itest/src/test/resources/aws/kinesis/aws-kinesis-source-route.yaml
index ffec94f15..a5e2b5a2c 100644
---
a/tests/camel-kamelets-itest/src/test/resources/aws/kinesis/aws-kinesis-source-route.yaml
+++
b/tests/camel-kamelets-itest/src/test/resources/aws/kinesis/aws-kinesis-source-route.yaml
@@ -27,7 +27,7 @@
region: "{{aws.kinesis.region}}"
steps:
# What the Kamelet gives
- - log: "Kamelet result: X-Body-Type=${body.getClass().getName()},
X-Content-Type=ct=${header.Content-Type};"
+ - log: "Kamelet result: X-Body-Type=${body.getClass().getName()},
X-Content-Type=ct=${header.Content-Type},
X-Stream-Name=${header.CamelAwsKinesisStreamName};"
- to:
uri: "kamelet:log-sink"
parameters:
diff --git
a/tests/camel-kamelets-itest/src/test/resources/aws/kinesis/aws-kinesis-source.citrus.it.yaml
b/tests/camel-kamelets-itest/src/test/resources/aws/kinesis/aws-kinesis-source.citrus.it.yaml
index 15e3da725..b7824e869 100644
---
a/tests/camel-kamelets-itest/src/test/resources/aws/kinesis/aws-kinesis-source.citrus.it.yaml
+++
b/tests/camel-kamelets-itest/src/test/resources/aws/kinesis/aws-kinesis-source.citrus.it.yaml
@@ -66,4 +66,4 @@ actions:
cli:
verify:
integration: "aws-kinesis-source-route"
- logMessage: "Kamelet result: X-Body-Type=[B,
X-Content-Type=ct=application/octet-stream;"
+ logMessage: "Kamelet result: X-Body-Type=[B,
X-Content-Type=ct=application/octet-stream,
X-Stream-Name=${aws.kinesis.streamName};"
diff --git
a/tests/camel-kamelets-itest/src/test/resources/azure/azure-servicebus-source-route.citrus.it.yaml
b/tests/camel-kamelets-itest/src/test/resources/azure/azure-servicebus-source-route.citrus.it.yaml
index 50d8752c2..fe67afd2f 100644
---
a/tests/camel-kamelets-itest/src/test/resources/azure/azure-servicebus-source-route.citrus.it.yaml
+++
b/tests/camel-kamelets-itest/src/test/resources/azure/azure-servicebus-source-route.citrus.it.yaml
@@ -49,6 +49,8 @@ actions:
value: '[B'
- name: "X-Content-Type"
value: 'ct=application/octet-stream'
+ - name: "X-Queue-Name"
+ value: 'orders'
- name: "X-Message-Id"
value: '@matches([0-9a-f]{32})@'
- name: "X-Delivery-Count"
diff --git
a/tests/camel-kamelets-itest/src/test/resources/azure/azure-servicebus-source-route.yaml
b/tests/camel-kamelets-itest/src/test/resources/azure/azure-servicebus-source-route.yaml
index c003e1138..5fa5cbb1a 100644
---
a/tests/camel-kamelets-itest/src/test/resources/azure/azure-servicebus-source-route.yaml
+++
b/tests/camel-kamelets-itest/src/test/resources/azure/azure-servicebus-source-route.yaml
@@ -58,6 +58,9 @@
# the body as text, for the HTTP call: Citrus reads an
application/octet-stream body as a byte array
- removeHeader:
name: Content-Type
+ - setHeader:
+ name: X-Queue-Name
+ simple: "${header.CamelAzureServiceBusTopicOrQueueName}"
- 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 772ed983e..3f15c9630 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
@@ -102,6 +102,10 @@ actions:
value: 'org.apache.camel.converter.stream.InputStreamCache'
- name: "X-Content-Type"
value: 'ct=application/octet-stream'
+ - name: "X-Container-Name"
+ value: 'orders'
+ - name: "X-CloudEvent-Source"
+ value: 'azure.storage.blob.orders'
- 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 08d9c036b..b6c7c74d4 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,6 +40,18 @@
- setHeader:
name: X-Blob-Type
simple: "${header.CamelAzureStorageBlobBlobType}"
+ - setHeader:
+ name: X-Container-Name
+ simple: "${header.CamelAzureStorageBlobConsumedContainerName}"
+ # the CloudEvent source, with the cloudevents output data type of the
Kamelet
+ - to:
+ uri: "kamelet:data-type-action"
+ parameters:
+ scheme: "azure-storage-blob"
+ format: "application-cloudevents"
+ - setHeader:
+ name: X-CloudEvent-Source
+ simple: "${header.CamelCloudEventSource}"
# the body as text, for the HTTP call: Citrus reads an
application/octet-stream body as a byte array
- removeHeader:
name: Content-Type
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 f1149a3d1..28259b492 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
@@ -101,6 +101,10 @@ actions:
value: 'org.apache.camel.converter.stream.InputStreamCache'
- name: "X-Content-Type"
value: 'ct=application/octet-stream'
+ - name: "X-File-System-Name"
+ value: 'lake'
+ - name: "X-CloudEvent-Source"
+ value: 'azure.storage.datalake.lake'
- 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 37e917cdc..a1f9e46b2 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,6 +34,18 @@
- setHeader:
name: X-File-Name
simple: "${header.CamelAzureStorageDataLakeFileName}"
+ - setHeader:
+ name: X-File-System-Name
+ simple: "${header.CamelAzureStorageDataLakeConsumedFileSystemName}"
+ # the CloudEvent source, with the cloudevents output data type of the
Kamelet
+ - to:
+ uri: "kamelet:data-type-action"
+ parameters:
+ scheme: "azure-storage-datalake"
+ format: "application-cloudevents"
+ - setHeader:
+ name: X-CloudEvent-Source
+ simple: "${header.CamelCloudEventSource}"
# the body as text, for the HTTP call: Citrus reads an
application/octet-stream body as a byte array
- removeHeader:
name: Content-Type
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 2853958ae..9ec13825b 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
@@ -96,6 +96,10 @@ actions:
value: 'java.lang.String'
- name: "X-Content-Type"
value: 'ct=text/plain'
+ - name: "X-Queue-Name"
+ value: 'orders'
+ - name: "X-CloudEvent-Source"
+ value: 'azure.storage.queue.orders'
- name: "X-Message-Id"
value: '@matches([0-9a-f-]{36})@'
- name: "X-Dequeue-Count"
diff --git
a/tests/camel-kamelets-itest/src/test/resources/azure/azure-storage-queue-source-route.yaml
b/tests/camel-kamelets-itest/src/test/resources/azure/azure-storage-queue-source-route.yaml
index 307796100..f176d0567 100644
---
a/tests/camel-kamelets-itest/src/test/resources/azure/azure-storage-queue-source-route.yaml
+++
b/tests/camel-kamelets-itest/src/test/resources/azure/azure-storage-queue-source-route.yaml
@@ -36,6 +36,18 @@
- setHeader:
name: X-Dequeue-Count
simple: "${header.CamelAzureStorageQueueDequeueCount}"
+ - setHeader:
+ name: X-Queue-Name
+ simple: "${header.CamelAzureStorageQueueConsumedQueueName}"
+ # the CloudEvent source, with the cloudevents output data type of the
Kamelet
+ - to:
+ uri: "kamelet:data-type-action"
+ parameters:
+ scheme: "azure-storage-queue"
+ format: "application-cloudevents"
+ - setHeader:
+ name: X-CloudEvent-Source
+ simple: "${header.CamelCloudEventSource}"
# the body as text, for the HTTP call
- convertBodyTo:
type: "java.lang.String"
diff --git
a/tests/camel-kamelets-itest/src/test/resources/google/google-pubsub-source-route.citrus.it.yaml
b/tests/camel-kamelets-itest/src/test/resources/google/google-pubsub-source-route.citrus.it.yaml
index 83f27d9e2..aea06b3a3 100644
---
a/tests/camel-kamelets-itest/src/test/resources/google/google-pubsub-source-route.citrus.it.yaml
+++
b/tests/camel-kamelets-itest/src/test/resources/google/google-pubsub-source-route.citrus.it.yaml
@@ -110,6 +110,8 @@ actions:
value: '[B'
- name: "X-Content-Type"
value: 'ct=application/octet-stream'
+ - name: "X-Subscription-Name"
+ value: 'orders-sub'
- name: "X-Message-Id"
value: '@matches([0-9]+)@'
- name: "X-Attributes"
diff --git
a/tests/camel-kamelets-itest/src/test/resources/google/google-pubsub-source-route.yaml
b/tests/camel-kamelets-itest/src/test/resources/google/google-pubsub-source-route.yaml
index ad7be928b..31f1b1c52 100644
---
a/tests/camel-kamelets-itest/src/test/resources/google/google-pubsub-source-route.yaml
+++
b/tests/camel-kamelets-itest/src/test/resources/google/google-pubsub-source-route.yaml
@@ -39,6 +39,9 @@
# the body as text, for the HTTP call: Citrus reads an
application/octet-stream body as a byte array
- removeHeader:
name: Content-Type
+ - setHeader:
+ name: X-Subscription-Name
+ simple: "${header.CamelGooglePubsubSubscriptionName}"
- convertBodyTo:
type: "java.lang.String"
- to: