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

[camel-kamelets] 15/28: Enhance data type AWS S3 YAKS tests

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 96f2c0d961a23dceacbf104fd666d0f41f5b1df9
Author: Christoph Deppisch <cd...@redhat.com>
AuthorDate: Tue Nov 22 12:35:45 2022 +0100

    Enhance data type AWS S3 YAKS tests
---
 .../{aws-s3-data-type.feature => aws-s3-cloudevents.feature}   | 10 +++++-----
 .../{aws-s3-data-type.feature => aws-s3-knative.feature}       |  5 ++---
 2 files changed, 7 insertions(+), 8 deletions(-)

diff --git a/test/aws-s3/aws-s3-data-type.feature b/test/aws-s3/aws-s3-cloudevents.feature
similarity index 88%
copy from test/aws-s3/aws-s3-data-type.feature
copy to test/aws-s3/aws-s3-cloudevents.feature
index 3ec04bde..1e2f7d1e 100644
--- a/test/aws-s3/aws-s3-data-type.feature
+++ b/test/aws-s3/aws-s3-cloudevents.feature
@@ -1,4 +1,4 @@
-Feature: AWS S3 Kamelet - output data type
+Feature: AWS S3 Kamelet - cloud events data type
 
   Background:
     Given Knative event consumer timeout is 20000 ms
@@ -30,14 +30,14 @@ Feature: AWS S3 Kamelet - output data type
   Scenario: Verify Kamelet source
     Given create Knative event consumer service event-consumer-service
     Given create Knative trigger event-service-trigger on service event-consumer-service with filter on attributes
-      | type   | org.apache.camel.event |
+      | type   | kamelet.aws.s3.source |
     Given Camel exchange message header CamelAwsS3Key="${aws.s3.key}"
     Given send Camel exchange to("aws2-s3://${aws.s3.bucketNameOrArn}?amazonS3Client=#amazonS3Client") with body: ${aws.s3.message}
     Then expect Knative event data: ${aws.s3.message}
     And verify Knative event
-      | type            | org.apache.camel.event |
-      | source          | @ignore@ |
-      | subject         | @ignore@ |
+      | type            | kamelet.aws.s3.source |
+      | source          | ${aws.s3.bucketNameOrArn} |
+      | subject         | ${aws.s3.key} |
       | id              | @ignore@ |
 
   Scenario: Remove Camel K resources
diff --git a/test/aws-s3/aws-s3-data-type.feature b/test/aws-s3/aws-s3-knative.feature
similarity index 94%
rename from test/aws-s3/aws-s3-data-type.feature
rename to test/aws-s3/aws-s3-knative.feature
index 3ec04bde..148ec1d6 100644
--- a/test/aws-s3/aws-s3-data-type.feature
+++ b/test/aws-s3/aws-s3-knative.feature
@@ -1,4 +1,4 @@
-Feature: AWS S3 Kamelet - output data type
+Feature: AWS S3 Kamelet - Knative binding
 
   Background:
     Given Knative event consumer timeout is 20000 ms
@@ -6,7 +6,7 @@ Feature: AWS S3 Kamelet - output data type
       | maxAttempts          | 200   |
       | delayBetweenAttempts | 4000  |
     Given variables
-      | aws.s3.output | cloudevents |
+      | aws.s3.output | string |
       | aws.s3.bucketNameOrArn | mybucket |
       | aws.s3.message | Hello from S3 Kamelet |
       | aws.s3.key | hello.txt |
@@ -37,7 +37,6 @@ Feature: AWS S3 Kamelet - output data type
     And verify Knative event
       | type            | org.apache.camel.event |
       | source          | @ignore@ |
-      | subject         | @ignore@ |
       | id              | @ignore@ |
 
   Scenario: Remove Camel K resources