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 81ec4ae07 chore: add uriEndpointOverride and overrideEndpoint to 
aws-lambda-sink, aws-secrets-manager-sink and aws-translate-action (#3290)
81ec4ae07 is described below

commit 81ec4ae078d334dde3a0b6cd0a145be68b625bbc
Author: Claus Ibsen <[email protected]>
AuthorDate: Fri Nov 20 10:39:21 2026 +0100

    chore: add uriEndpointOverride and overrideEndpoint to aws-lambda-sink, 
aws-secrets-manager-sink and aws-translate-action (#3290)
    
    These three were the only AWS Kamelets on an AWS SDK component without the
    endpoint override options. The aws2-lambda, aws-secrets-manager and
    aws2-translate components all have overrideEndpoint and uriEndpointOverride.
    The property definitions and descriptions are copied from aws-sqs-sink.
    
    Tests: the aws-lambda-sink and aws-secrets-manager-sink tests now reach 
their
    stand-in (the Citrus HTTP server, Floci) through uriEndpointOverride 
instead of
    the AWS_ENDPOINT_URL_* environment variable. A new aws-translate-action test
    points uriEndpointOverride at the Citrus HTTP server, checks the Smithy RPC 
v2
    CBOR request and answers with a CBOR TranslateText response.
    
    Co-authored-by: Claude Opus 5.5 <[email protected]>
---
 kamelets/aws-lambda-sink.kamelet.yaml              | 12 ++++
 kamelets/aws-secrets-manager-sink.kamelet.yaml     | 12 ++++
 kamelets/aws-translate-action.kamelet.yaml         | 12 +++-
 .../kamelets/aws-lambda-sink.kamelet.yaml          | 12 ++++
 .../kamelets/aws-secrets-manager-sink.kamelet.yaml | 12 ++++
 .../kamelets/aws-translate-action.kamelet.yaml     | 12 +++-
 .../camel-kamelets-itest/src/test/java/AwsIT.java  |  5 ++
 .../lambda/aws-lambda-sink-route.citrus.it.yaml    |  6 +-
 .../aws/lambda/aws-lambda-sink-route.yaml          |  2 +
 .../aws-secrets-manager-sink-route.citrus.it.yaml  |  6 +-
 .../aws-secrets-manager-sink-route.yaml            |  2 +
 .../aws-translate-action-route.citrus.it.yaml      | 81 ++++++++++++++++++++++
 .../aws-translate-action-route.yaml}               | 23 ++----
 13 files changed, 169 insertions(+), 28 deletions(-)

diff --git a/kamelets/aws-lambda-sink.kamelet.yaml 
b/kamelets/aws-lambda-sink.kamelet.yaml
index c54609e78..f825f9618 100644
--- a/kamelets/aws-lambda-sink.kamelet.yaml
+++ b/kamelets/aws-lambda-sink.kamelet.yaml
@@ -97,6 +97,16 @@ spec:
         format: password
         x-descriptors:
         - urn:camel:group:credentials
+      uriEndpointOverride:
+        title: Overwrite Endpoint URI
+        description: The address to connect to instead of AWS, as a URL such 
as `http://localhost:4566` for LocalStack. Only used when `overrideEndpoint` is 
true.
+        example: http://localhost:4566
+        type: string
+      overrideEndpoint:
+        title: Endpoint Overwrite
+        description: If true, it connects to the address in 
`uriEndpointOverride` instead of to AWS. Use it for a local stand-in of AWS 
such as LocalStack.
+        type: boolean
+        default: false
       proxyHost:
         title: Proxy Host
         description: The host name or IP address of an HTTP proxy to send the 
calls to AWS through, such as the proxy of a company network. Used only 
together with `proxyPort`. When it is not set, the calls go straight to AWS.
@@ -149,6 +159,8 @@ spec:
               region: "{{region}}"
               secretKey: "RAW({{?secretKey}})"
               sessionToken: "RAW({{?sessionToken}})"
+              overrideEndpoint: "{{overrideEndpoint}}"
+              uriEndpointOverride: "{{?uriEndpointOverride}}"
               useDefaultCredentialsProvider: 
"{{useDefaultCredentialsProvider}}"
               useProfileCredentialsProvider: 
"{{useProfileCredentialsProvider}}"
               useSessionCredentials: "{{useSessionCredentials}}"
diff --git a/kamelets/aws-secrets-manager-sink.kamelet.yaml 
b/kamelets/aws-secrets-manager-sink.kamelet.yaml
index f1f490bd5..778d65c78 100644
--- a/kamelets/aws-secrets-manager-sink.kamelet.yaml
+++ b/kamelets/aws-secrets-manager-sink.kamelet.yaml
@@ -91,6 +91,16 @@ spec:
         format: password
         x-descriptors:
         - urn:camel:group:credentials
+      uriEndpointOverride:
+        title: Overwrite Endpoint URI
+        description: The address to connect to instead of AWS, as a URL such 
as `http://localhost:4566` for LocalStack. Only used when `overrideEndpoint` is 
true.
+        example: http://localhost:4566
+        type: string
+      overrideEndpoint:
+        title: Endpoint Overwrite
+        description: If true, it connects to the address in 
`uriEndpointOverride` instead of to AWS. Use it for a local stand-in of AWS 
such as LocalStack.
+        type: boolean
+        default: false
       proxyHost:
         title: Proxy Host
         description: The host name or IP address of an HTTP proxy to send the 
calls to AWS through, such as the proxy of a company network. Used only 
together with `proxyPort`. When it is not set, the calls go straight to AWS.
@@ -213,6 +223,8 @@ spec:
               region: "{{region}}"
               secretKey: "RAW({{?secretKey}})"
               sessionToken: "RAW({{?sessionToken}})"
+              overrideEndpoint: "{{overrideEndpoint}}"
+              uriEndpointOverride: "{{?uriEndpointOverride}}"
               useDefaultCredentialsProvider: 
"{{useDefaultCredentialsProvider}}"
               useProfileCredentialsProvider: 
"{{useProfileCredentialsProvider}}"
               useSessionCredentials: "{{useSessionCredentials}}"
diff --git a/kamelets/aws-translate-action.kamelet.yaml 
b/kamelets/aws-translate-action.kamelet.yaml
index c7e513f3c..feef00222 100644
--- a/kamelets/aws-translate-action.kamelet.yaml
+++ b/kamelets/aws-translate-action.kamelet.yaml
@@ -104,6 +104,16 @@ spec:
         format: password
         x-descriptors:
         - urn:camel:group:credentials
+      uriEndpointOverride:
+        title: Overwrite Endpoint URI
+        description: The address to connect to instead of AWS, as a URL such 
as `http://localhost:4566` for LocalStack. Only used when `overrideEndpoint` is 
true.
+        example: http://localhost:4566
+        type: string
+      overrideEndpoint:
+        title: Endpoint Overwrite
+        description: If true, it connects to the address in 
`uriEndpointOverride` instead of to AWS. Use it for a local stand-in of AWS 
such as LocalStack.
+        type: boolean
+        default: false
       proxyHost:
         title: Proxy Host
         description: The host name or IP address of an HTTP proxy to send the 
calls to AWS through, such as the proxy of a company network. Used only 
together with `proxyPort`. When it is not set, the calls go straight to AWS.
@@ -153,4 +163,4 @@ spec:
                         simple:
                           expression: "${split('{{?terminologyNames}}',',')}"
         - to:
-            uri: 
"aws2-translate://translate?accessKey=RAW({{?accessKey}})&profileCredentialsName={{?profileCredentialsName}}&region={{region}}&secretKey=RAW({{?secretKey}})&sessionToken=RAW({{?sessionToken}})&sourceLanguage={{?sourceLanguage}}&targetLanguage={{targetLanguage}}&useDefaultCredentialsProvider={{useDefaultCredentialsProvider}}&useProfileCredentialsProvider={{useProfileCredentialsProvider}}&useSessionCredentials={{useSessionCredentials}}&proxyHost={{?proxyHost}}&proxyPort={{
 [...]
+            uri: 
"aws2-translate://translate?accessKey=RAW({{?accessKey}})&profileCredentialsName={{?profileCredentialsName}}&region={{region}}&secretKey=RAW({{?secretKey}})&sessionToken=RAW({{?sessionToken}})&overrideEndpoint={{overrideEndpoint}}&uriEndpointOverride={{?uriEndpointOverride}}&sourceLanguage={{?sourceLanguage}}&targetLanguage={{targetLanguage}}&useDefaultCredentialsProvider={{useDefaultCredentialsProvider}}&useProfileCredentialsProvider={{useProfileCredentialsProvider}}&us
 [...]
diff --git 
a/library/camel-kamelets/src/main/resources/kamelets/aws-lambda-sink.kamelet.yaml
 
b/library/camel-kamelets/src/main/resources/kamelets/aws-lambda-sink.kamelet.yaml
index c54609e78..f825f9618 100644
--- 
a/library/camel-kamelets/src/main/resources/kamelets/aws-lambda-sink.kamelet.yaml
+++ 
b/library/camel-kamelets/src/main/resources/kamelets/aws-lambda-sink.kamelet.yaml
@@ -97,6 +97,16 @@ spec:
         format: password
         x-descriptors:
         - urn:camel:group:credentials
+      uriEndpointOverride:
+        title: Overwrite Endpoint URI
+        description: The address to connect to instead of AWS, as a URL such 
as `http://localhost:4566` for LocalStack. Only used when `overrideEndpoint` is 
true.
+        example: http://localhost:4566
+        type: string
+      overrideEndpoint:
+        title: Endpoint Overwrite
+        description: If true, it connects to the address in 
`uriEndpointOverride` instead of to AWS. Use it for a local stand-in of AWS 
such as LocalStack.
+        type: boolean
+        default: false
       proxyHost:
         title: Proxy Host
         description: The host name or IP address of an HTTP proxy to send the 
calls to AWS through, such as the proxy of a company network. Used only 
together with `proxyPort`. When it is not set, the calls go straight to AWS.
@@ -149,6 +159,8 @@ spec:
               region: "{{region}}"
               secretKey: "RAW({{?secretKey}})"
               sessionToken: "RAW({{?sessionToken}})"
+              overrideEndpoint: "{{overrideEndpoint}}"
+              uriEndpointOverride: "{{?uriEndpointOverride}}"
               useDefaultCredentialsProvider: 
"{{useDefaultCredentialsProvider}}"
               useProfileCredentialsProvider: 
"{{useProfileCredentialsProvider}}"
               useSessionCredentials: "{{useSessionCredentials}}"
diff --git 
a/library/camel-kamelets/src/main/resources/kamelets/aws-secrets-manager-sink.kamelet.yaml
 
b/library/camel-kamelets/src/main/resources/kamelets/aws-secrets-manager-sink.kamelet.yaml
index f1f490bd5..778d65c78 100644
--- 
a/library/camel-kamelets/src/main/resources/kamelets/aws-secrets-manager-sink.kamelet.yaml
+++ 
b/library/camel-kamelets/src/main/resources/kamelets/aws-secrets-manager-sink.kamelet.yaml
@@ -91,6 +91,16 @@ spec:
         format: password
         x-descriptors:
         - urn:camel:group:credentials
+      uriEndpointOverride:
+        title: Overwrite Endpoint URI
+        description: The address to connect to instead of AWS, as a URL such 
as `http://localhost:4566` for LocalStack. Only used when `overrideEndpoint` is 
true.
+        example: http://localhost:4566
+        type: string
+      overrideEndpoint:
+        title: Endpoint Overwrite
+        description: If true, it connects to the address in 
`uriEndpointOverride` instead of to AWS. Use it for a local stand-in of AWS 
such as LocalStack.
+        type: boolean
+        default: false
       proxyHost:
         title: Proxy Host
         description: The host name or IP address of an HTTP proxy to send the 
calls to AWS through, such as the proxy of a company network. Used only 
together with `proxyPort`. When it is not set, the calls go straight to AWS.
@@ -213,6 +223,8 @@ spec:
               region: "{{region}}"
               secretKey: "RAW({{?secretKey}})"
               sessionToken: "RAW({{?sessionToken}})"
+              overrideEndpoint: "{{overrideEndpoint}}"
+              uriEndpointOverride: "{{?uriEndpointOverride}}"
               useDefaultCredentialsProvider: 
"{{useDefaultCredentialsProvider}}"
               useProfileCredentialsProvider: 
"{{useProfileCredentialsProvider}}"
               useSessionCredentials: "{{useSessionCredentials}}"
diff --git 
a/library/camel-kamelets/src/main/resources/kamelets/aws-translate-action.kamelet.yaml
 
b/library/camel-kamelets/src/main/resources/kamelets/aws-translate-action.kamelet.yaml
index c7e513f3c..feef00222 100644
--- 
a/library/camel-kamelets/src/main/resources/kamelets/aws-translate-action.kamelet.yaml
+++ 
b/library/camel-kamelets/src/main/resources/kamelets/aws-translate-action.kamelet.yaml
@@ -104,6 +104,16 @@ spec:
         format: password
         x-descriptors:
         - urn:camel:group:credentials
+      uriEndpointOverride:
+        title: Overwrite Endpoint URI
+        description: The address to connect to instead of AWS, as a URL such 
as `http://localhost:4566` for LocalStack. Only used when `overrideEndpoint` is 
true.
+        example: http://localhost:4566
+        type: string
+      overrideEndpoint:
+        title: Endpoint Overwrite
+        description: If true, it connects to the address in 
`uriEndpointOverride` instead of to AWS. Use it for a local stand-in of AWS 
such as LocalStack.
+        type: boolean
+        default: false
       proxyHost:
         title: Proxy Host
         description: The host name or IP address of an HTTP proxy to send the 
calls to AWS through, such as the proxy of a company network. Used only 
together with `proxyPort`. When it is not set, the calls go straight to AWS.
@@ -153,4 +163,4 @@ spec:
                         simple:
                           expression: "${split('{{?terminologyNames}}',',')}"
         - to:
-            uri: 
"aws2-translate://translate?accessKey=RAW({{?accessKey}})&profileCredentialsName={{?profileCredentialsName}}&region={{region}}&secretKey=RAW({{?secretKey}})&sessionToken=RAW({{?sessionToken}})&sourceLanguage={{?sourceLanguage}}&targetLanguage={{targetLanguage}}&useDefaultCredentialsProvider={{useDefaultCredentialsProvider}}&useProfileCredentialsProvider={{useProfileCredentialsProvider}}&useSessionCredentials={{useSessionCredentials}}&proxyHost={{?proxyHost}}&proxyPort={{
 [...]
+            uri: 
"aws2-translate://translate?accessKey=RAW({{?accessKey}})&profileCredentialsName={{?profileCredentialsName}}&region={{region}}&secretKey=RAW({{?secretKey}})&sessionToken=RAW({{?sessionToken}})&overrideEndpoint={{overrideEndpoint}}&uriEndpointOverride={{?uriEndpointOverride}}&sourceLanguage={{?sourceLanguage}}&targetLanguage={{targetLanguage}}&useDefaultCredentialsProvider={{useDefaultCredentialsProvider}}&useProfileCredentialsProvider={{useProfileCredentialsProvider}}&us
 [...]
diff --git a/tests/camel-kamelets-itest/src/test/java/AwsIT.java 
b/tests/camel-kamelets-itest/src/test/java/AwsIT.java
index 63c569a15..209b58816 100644
--- a/tests/camel-kamelets-itest/src/test/java/AwsIT.java
+++ b/tests/camel-kamelets-itest/src/test/java/AwsIT.java
@@ -124,6 +124,11 @@ public class AwsIT {
         return 
CitrusTestFactorySupport.factory(TestLoader.YAML).packageScan("aws.lambda");
     }
 
+    @CitrusTestFactory
+    public Stream<DynamicTest> awsTranslate() {
+        return 
CitrusTestFactorySupport.factory(TestLoader.YAML).packageScan("aws.translate");
+    }
+
     @CitrusTestFactory
     public Stream<DynamicTest> awsPolly() {
         return 
CitrusTestFactorySupport.factory(TestLoader.YAML).packageScan("aws.polly");
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/aws/lambda/aws-lambda-sink-route.citrus.it.yaml
 
b/tests/camel-kamelets-itest/src/test/resources/aws/lambda/aws-lambda-sink-route.citrus.it.yaml
index 358265253..33bf24917 100644
--- 
a/tests/camel-kamelets-itest/src/test/resources/aws/lambda/aws-lambda-sink-route.citrus.it.yaml
+++ 
b/tests/camel-kamelets-itest/src/test/resources/aws/lambda/aws-lambda-sink-route.citrus.it.yaml
@@ -19,16 +19,12 @@ name: aws-lambda-sink-route-test
 # The body is the event of the function, and what the function returns becomes 
the body. The Citrus HTTP server
 # stands in for AWS Lambda: Floci runs functions in Docker containers, which 
it cannot reach from its own container.
 actions:
-  # The Kamelet has no uriEndpointOverride: the AWS SDK takes the endpoint 
from the environment
+  # The calls reach the stand-in through uriEndpointOverride
   - camel:
       cli:
         run:
           integration:
             file: "aws/lambda/aws-lambda-sink-route.yaml"
-            environment:
-              variables:
-                - name: "AWS_ENDPOINT_URL_LAMBDA"
-                  value: "http://localhost:${aws.sink.server.port}";
             systemProperties:
               file: "aws/aws-stand-in.properties"
 
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/aws/lambda/aws-lambda-sink-route.yaml
 
b/tests/camel-kamelets-itest/src/test/resources/aws/lambda/aws-lambda-sink-route.yaml
index cb833b59f..b371feee3 100644
--- 
a/tests/camel-kamelets-itest/src/test/resources/aws/lambda/aws-lambda-sink-route.yaml
+++ 
b/tests/camel-kamelets-itest/src/test/resources/aws/lambda/aws-lambda-sink-route.yaml
@@ -32,6 +32,8 @@
               accessKey: "{{aws.accessKey}}"
               secretKey: "{{aws.secretKey}}"
               region: "{{aws.region}}"
+              overrideEndpoint: "true"
+              uriEndpointOverride: "{{aws.uriEndpointOverride}}"
         # What the Kamelet leaves on the message
         - setHeader:
             name: X-Body-Type
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/aws/secretsmanager/aws-secrets-manager-sink-route.citrus.it.yaml
 
b/tests/camel-kamelets-itest/src/test/resources/aws/secretsmanager/aws-secrets-manager-sink-route.citrus.it.yaml
index d897e50df..55c0f57fe 100644
--- 
a/tests/camel-kamelets-itest/src/test/resources/aws/secretsmanager/aws-secrets-manager-sink-route.citrus.it.yaml
+++ 
b/tests/camel-kamelets-itest/src/test/resources/aws/secretsmanager/aws-secrets-manager-sink-route.citrus.it.yaml
@@ -28,16 +28,12 @@ actions:
       http:
         url: "${CITRUS_TESTCONTAINERS_LOCALSTACK_SERVICE_URL}"
 
-  # The Kamelet has no uriEndpointOverride: the AWS SDK takes the endpoint 
from the environment
+  # The calls reach Floci through uriEndpointOverride
   - camel:
       cli:
         run:
           integration:
             file: "aws/secretsmanager/aws-secrets-manager-sink-route.yaml"
-            environment:
-              variables:
-                - name: "AWS_ENDPOINT_URL_SECRETS_MANAGER"
-                  value: "${CITRUS_TESTCONTAINERS_LOCALSTACK_SERVICE_URL}"
             systemProperties:
               file: "aws/floci.properties"
 
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/aws/secretsmanager/aws-secrets-manager-sink-route.yaml
 
b/tests/camel-kamelets-itest/src/test/resources/aws/secretsmanager/aws-secrets-manager-sink-route.yaml
index 6fc6d7223..6752fbeab 100644
--- 
a/tests/camel-kamelets-itest/src/test/resources/aws/secretsmanager/aws-secrets-manager-sink-route.yaml
+++ 
b/tests/camel-kamelets-itest/src/test/resources/aws/secretsmanager/aws-secrets-manager-sink-route.yaml
@@ -33,6 +33,8 @@
               accessKey: "{{aws.accessKey}}"
               secretKey: "{{aws.secretKey}}"
               region: "{{aws.region}}"
+              overrideEndpoint: "true"
+              uriEndpointOverride: "{{aws.uriEndpointOverride}}"
         # What the Kamelet leaves on the message
         - setHeader:
             name: X-Body-Type
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/aws/translate/aws-translate-action-route.citrus.it.yaml
 
b/tests/camel-kamelets-itest/src/test/resources/aws/translate/aws-translate-action-route.citrus.it.yaml
new file mode 100644
index 000000000..c5f34c382
--- /dev/null
+++ 
b/tests/camel-kamelets-itest/src/test/resources/aws/translate/aws-translate-action-route.citrus.it.yaml
@@ -0,0 +1,81 @@
+# ---------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ---------------------------------------------------------------------------
+
+
+name: aws-translate-action-route-test
+# The Citrus HTTP server stands in for Amazon Translate, reached through 
uriEndpointOverride
+actions:
+  - camel:
+      cli:
+        run:
+          integration:
+            file: "aws/translate/aws-translate-action-route.yaml"
+            systemProperties:
+              file: "aws/aws-stand-in.properties"
+
+  # The request arrives at the address in uriEndpointOverride. The AWS SDK 
talks to Amazon Translate in the
+  # Smithy RPC v2 CBOR protocol: the operation is in the path, and the body is 
binary CBOR, so it is not checked.
+  - http:
+      server: "awsSinkServer"
+      receiveRequest:
+        POST:
+          path: 
"/service/AWSShineFrontendService_20170701/operation/TranslateText"
+          type: "plaintext"
+          headers:
+            - name: "smithy-protocol"
+              value: 'rpc-v2-cbor'
+          body:
+            data: '@ignore@'
+
+  # The answer is the CBOR map {"TranslatedText":"Hello 
world","SourceLanguageCode":"it","TargetLanguageCode":"en"}.
+  # Its only byte above 0x7F is the map header 0xA3, which ISO-8859-1 writes 
as that one byte.
+  - http:
+      server: "awsSinkServer"
+      sendResponse:
+        response:
+          status: 200
+          reasonPhrase: "OK"
+          version: "HTTP/1.1"
+          headers:
+            - name: "Content-Type"
+              value: 'application/cbor;charset=ISO-8859-1'
+            - name: "smithy-protocol"
+              value: 'rpc-v2-cbor'
+          body:
+            data: "\xA3nTranslatedTextkHello 
worldrSourceLanguageCodebitrTargetLanguageCodeben"
+
+  # The body is the translated text
+  - http:
+      server: "awsSinkServer"
+      receiveRequest:
+        POST:
+          path: "/result"
+          type: "plaintext"
+          headers:
+            - name: "X-Body-Type"
+              value: 'java.lang.String'
+          body:
+            data: 'Hello world'
+  - http:
+      server: "awsSinkServer"
+      sendResponse:
+        response:
+          status: 200
+          reasonPhrase: "OK"
+          version: "HTTP/1.1"
+          body:
+            data: "OK"
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/aws/secretsmanager/aws-secrets-manager-sink-route.yaml
 
b/tests/camel-kamelets-itest/src/test/resources/aws/translate/aws-translate-action-route.yaml
similarity index 74%
copy from 
tests/camel-kamelets-itest/src/test/resources/aws/secretsmanager/aws-secrets-manager-sink-route.yaml
copy to 
tests/camel-kamelets-itest/src/test/resources/aws/translate/aws-translate-action-route.yaml
index 6fc6d7223..55fe88b91 100644
--- 
a/tests/camel-kamelets-itest/src/test/resources/aws/secretsmanager/aws-secrets-manager-sink-route.yaml
+++ 
b/tests/camel-kamelets-itest/src/test/resources/aws/translate/aws-translate-action-route.yaml
@@ -15,6 +15,7 @@
 # limitations under the License.
 # ---------------------------------------------------------------------------
 
+
 - route:
     from:
       uri: "timer:tick"
@@ -22,31 +23,21 @@
         period: "1000"
         repeatCount: 1
       steps:
-        - setHeader:
-            name: secret-name
-            constant: 'db-password'
         - setBody:
-            constant: 's3cr3t'
+            constant: 'Ciao mondo'
         - to:
-            uri: "kamelet:aws-secrets-manager-sink"
+            uri: "kamelet:aws-translate-action"
             parameters:
+              sourceLanguage: "it"
+              targetLanguage: "en"
               accessKey: "{{aws.accessKey}}"
               secretKey: "{{aws.secretKey}}"
               region: "{{aws.region}}"
+              overrideEndpoint: "true"
+              uriEndpointOverride: "{{aws.uriEndpointOverride}}"
         # What the Kamelet leaves on the message
         - setHeader:
             name: X-Body-Type
             simple: "${body.getClass().getName()}"
-        - setHeader:
-            name: X-Content-Type
-            simple: "ct=${header.Content-Type}"
-        - setHeader:
-            name: X-Secret-Name
-            simple: '${body.name()}'
-        - setHeader:
-            name: X-Secret-Arn
-            simple: '${body.arn()}'
-        - setBody:
-            constant: 'created'
         - to:
             uri: "{{http.sink.url}}/result"

Reply via email to