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


The following commit(s) were added to refs/heads/master by this push:
     new 5a05225  CAMEL-15451 - camel-aws2-s3 - Test errors running local tests
5a05225 is described below

commit 5a05225e8147d9fe7d26b9e17363351b63064932
Author: Andrea Cosentino <anco...@gmail.com>
AuthorDate: Tue Aug 25 07:32:49 2020 +0200

    CAMEL-15451 - camel-aws2-s3 - Test errors running local tests
---
 .../apache/camel/component/aws2/s3/S3ComponentConfigurationTest.java | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git 
a/components/camel-aws2-s3/src/test/java/org/apache/camel/component/aws2/s3/S3ComponentConfigurationTest.java
 
b/components/camel-aws2-s3/src/test/java/org/apache/camel/component/aws2/s3/S3ComponentConfigurationTest.java
index 50f45ca..b8c0846 100644
--- 
a/components/camel-aws2-s3/src/test/java/org/apache/camel/component/aws2/s3/S3ComponentConfigurationTest.java
+++ 
b/components/camel-aws2-s3/src/test/java/org/apache/camel/component/aws2/s3/S3ComponentConfigurationTest.java
@@ -18,6 +18,7 @@ package org.apache.camel.component.aws2.s3;
 
 import org.apache.camel.test.junit5.CamelTestSupport;
 import org.junit.jupiter.api.Test;
+import software.amazon.awssdk.regions.Region;
 import software.amazon.awssdk.services.s3.S3Client;
 
 import static org.junit.jupiter.api.Assertions.assertEquals;
@@ -39,7 +40,7 @@ public class S3ComponentConfigurationTest extends 
CamelTestSupport {
 
     @Test
     public void createEndpointWithCredentialsAndClientExistInRegistry() throws 
Exception {
-        S3Client client = S3Client.builder().build();
+        S3Client client = S3Client.builder().region(Region.EU_WEST_1).build();
         context.getRegistry().bind("amazonS3Client", client);
         AWS2S3Component component = context.getComponent("aws2-s3", 
AWS2S3Component.class);
         AWS2S3Endpoint endpoint = (AWS2S3Endpoint) component.createEndpoint(
@@ -51,7 +52,7 @@ public class S3ComponentConfigurationTest extends 
CamelTestSupport {
 
     @Test
     public void 
createEndpointWithCredentialsAndClientExistInRegistryWithAutodiscover() throws 
Exception {
-        S3Client client = S3Client.builder().build();
+        S3Client client = S3Client.builder().region(Region.EU_WEST_1).build();
         context.getRegistry().bind("amazonS3Client", client);
         AWS2S3Component component = context.getComponent("aws2-s3", 
AWS2S3Component.class);
         AWS2S3Endpoint endpoint = (AWS2S3Endpoint) component

Reply via email to