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 2021/03/02 08:34:09 UTC

[camel] 07/10: CAMEL-16171 - Add uri-endpoint-override options to all AWS2 components - AWS2-Lambda component

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

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

commit 5e6e22967908b2b34dc0020435a0a63bf269972d
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Mar 2 09:05:30 2021 +0100

    CAMEL-16171 - Add uri-endpoint-override options to all AWS2 components - AWS2-Lambda component
---
 .../camel/component/aws2/lambda/LambdaComponentConfigurationTest.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/components/camel-aws2-lambda/src/test/java/org/apache/camel/component/aws2/lambda/LambdaComponentConfigurationTest.java b/components/camel-aws2-lambda/src/test/java/org/apache/camel/component/aws2/lambda/LambdaComponentConfigurationTest.java
index 0914916..d6ed33a 100644
--- a/components/camel-aws2-lambda/src/test/java/org/apache/camel/component/aws2/lambda/LambdaComponentConfigurationTest.java
+++ b/components/camel-aws2-lambda/src/test/java/org/apache/camel/component/aws2/lambda/LambdaComponentConfigurationTest.java
@@ -25,6 +25,7 @@ import software.amazon.awssdk.services.lambda.LambdaClient;
 import static org.junit.jupiter.api.Assertions.assertEquals;
 import static org.junit.jupiter.api.Assertions.assertNotNull;
 import static org.junit.jupiter.api.Assertions.assertThrows;
+import static org.junit.jupiter.api.Assertions.assertTrue;
 
 public class LambdaComponentConfigurationTest extends CamelTestSupport {
 
@@ -131,7 +132,8 @@ public class LambdaComponentConfigurationTest extends CamelTestSupport {
     public void createEndpointWithOverride() throws Exception {
         Lambda2Component component = context.getComponent("aws2-lambda", Lambda2Component.class);
         Lambda2Endpoint endpoint = (Lambda2Endpoint) component
-                .createEndpoint("aws2-lambda://myFunction?accessKey=xxxxxx&secretKey=yyyyy&region=US_EAST_1&overrideEndpoint=true&uriEndpointOverride=http://localhost:9090");
+                .createEndpoint(
+                        "aws2-lambda://myFunction?accessKey=xxxxxx&secretKey=yyyyy&region=US_EAST_1&overrideEndpoint=true&uriEndpointOverride=http://localhost:9090");
 
         assertEquals("myFunction", endpoint.getFunction());
         assertEquals("xxxxxx", endpoint.getConfiguration().getAccessKey());