You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2026/08/08 13:26:12 UTC

(camel-kamelets) branch main updated: fix: Fix AWS DDB update sink test (#2940)

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 b5af41f03 fix: Fix AWS DDB update sink test (#2940)
b5af41f03 is described below

commit b5af41f030ac213e266127bcb4ea016a3fd0c468
Author: Christoph Deppisch <cd...@redhat.com>
AuthorDate: Sat Aug 8 15:26:07 2026 +0200

    fix: Fix AWS DDB update sink test (#2940)
    
    - Reactivate Citrus test for AWS Dynamo DB update operation
    - Fix expected DDB items verification
    - Fix UpdateItem operation set as Exchange property
---
 .../src/test/resources/aws/ddb/aws-ddb-sink-route.yaml               | 3 +++
 .../test/resources/aws/ddb/aws-ddb-sink-update-item.citrus.it.yaml   | 5 ++---
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/tests/camel-kamelets-itest/src/test/resources/aws/ddb/aws-ddb-sink-route.yaml b/tests/camel-kamelets-itest/src/test/resources/aws/ddb/aws-ddb-sink-route.yaml
index 06ef96047..1b8cbc6dd 100644
--- a/tests/camel-kamelets-itest/src/test/resources/aws/ddb/aws-ddb-sink-route.yaml
+++ b/tests/camel-kamelets-itest/src/test/resources/aws/ddb/aws-ddb-sink-route.yaml
@@ -24,6 +24,9 @@
       steps:
       - setBody:
           constant: "{{aws.ddb.json.data}}"
+      - setProperty:
+          name: operation
+          constant: "{{aws.ddb.operation}}"
       - log: "${body}"
       - to:
           uri: "kamelet:aws-ddb-sink"
diff --git a/tests/camel-kamelets-itest/src/test/resources/aws/ddb/aws-ddb-sink-update-item.citrus.it.yaml b/tests/camel-kamelets-itest/src/test/resources/aws/ddb/aws-ddb-sink-update-item.citrus.it.yaml
index da050b280..ab294112a 100644
--- a/tests/camel-kamelets-itest/src/test/resources/aws/ddb/aws-ddb-sink-update-item.citrus.it.yaml
+++ b/tests/camel-kamelets-itest/src/test/resources/aws/ddb/aws-ddb-sink-update-item.citrus.it.yaml
@@ -16,7 +16,6 @@
 # ---------------------------------------------------------------------------
 
 name: aws-ddb-sink-update-item-test
-status: DISABLED
 variables:
   - name: "maxRetryAttempts"
     value: "20"
@@ -107,9 +106,9 @@ actions:
   - createVariables:
       variables:
         - name: "aws.ddb.item.directors"
-          value: "[Ernest B. Schoedsack, Merian C. Cooper]"
+          value: "[Merian C. Cooper, Ernest B. Schoedsack]"
         - name: "aws.ddb.item"
-          value: "[id:AttributeValue(N=${aws.ddb.item.id}), title:AttributeValue(S=${aws.ddb.item.title.new}), year:AttributeValue(N=${aws.ddb.item.year}), directors:AttributeValue(SS=${aws.ddb.item.directors})]"
+          value: "[directors:AttributeValue(SS=${aws.ddb.item.directors}), id:AttributeValue(N=${aws.ddb.item.id}), title:AttributeValue(S=${aws.ddb.item.title.new}), year:AttributeValue(N=${aws.ddb.item.year})]"
 
   - repeatOnError:
       until: "i > ${maxRetryAttempts}"