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 2018/02/28 08:31:41 UTC

[camel] branch master updated: CAMEL-12298: Fixed camel-aws test that required a region to be configured.

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

davsclaus 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 7f556e4  CAMEL-12298: Fixed camel-aws test that required a region to be configured.
7f556e4 is described below

commit 7f556e43347c7f27df4f15c4a8362b2a4788e276
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Wed Feb 28 09:31:30 2018 +0100

    CAMEL-12298: Fixed camel-aws test that required a region to be configured.
---
 .../component/aws/s3/client/impl/IAMOptimizedAWSS3ClientImplTest.java   | 2 ++
 .../camel/component/aws/s3/client/impl/StandardAWSS3ClientImplTest.java | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/components/camel-aws/src/test/java/org/apache/camel/component/aws/s3/client/impl/IAMOptimizedAWSS3ClientImplTest.java b/components/camel-aws/src/test/java/org/apache/camel/component/aws/s3/client/impl/IAMOptimizedAWSS3ClientImplTest.java
index 7e14590..25ae9b5 100644
--- a/components/camel-aws/src/test/java/org/apache/camel/component/aws/s3/client/impl/IAMOptimizedAWSS3ClientImplTest.java
+++ b/components/camel-aws/src/test/java/org/apache/camel/component/aws/s3/client/impl/IAMOptimizedAWSS3ClientImplTest.java
@@ -53,12 +53,14 @@ public class IAMOptimizedAWSS3ClientImplTest {
 
     private S3Configuration getS3ConfigurationNoEncryption() {
         S3Configuration s3Configuration = mock(S3Configuration.class);
+        when(s3Configuration.getRegion()).thenReturn("US_EAST_1");
         when(s3Configuration.isUseEncryption()).thenReturn(false);
         return s3Configuration;
     }
 
     private S3Configuration getS3ConfigurationUseEncryption() {
         S3Configuration s3Configuration = mock(S3Configuration.class);
+        when(s3Configuration.getRegion()).thenReturn("US_EAST_1");
         when(s3Configuration.isUseEncryption()).thenReturn(true);
         return s3Configuration;
     }
diff --git a/components/camel-aws/src/test/java/org/apache/camel/component/aws/s3/client/impl/StandardAWSS3ClientImplTest.java b/components/camel-aws/src/test/java/org/apache/camel/component/aws/s3/client/impl/StandardAWSS3ClientImplTest.java
index 5a95ccb..567921a 100644
--- a/components/camel-aws/src/test/java/org/apache/camel/component/aws/s3/client/impl/StandardAWSS3ClientImplTest.java
+++ b/components/camel-aws/src/test/java/org/apache/camel/component/aws/s3/client/impl/StandardAWSS3ClientImplTest.java
@@ -53,12 +53,14 @@ public class StandardAWSS3ClientImplTest {
 
     private S3Configuration getS3ConfigurationNoEncryption() {
         S3Configuration s3Configuration = mock(S3Configuration.class);
+        when(s3Configuration.getRegion()).thenReturn("US_EAST_1");
         when(s3Configuration.isUseEncryption()).thenReturn(false);
         return s3Configuration;
     }
 
     private S3Configuration getS3ConfigurationUseEncryption() {
         S3Configuration s3Configuration = mock(S3Configuration.class);
+        when(s3Configuration.getRegion()).thenReturn("US_EAST_1");
         when(s3Configuration.isUseEncryption()).thenReturn(true);
         return s3Configuration;
     }

-- 
To stop receiving notification emails like this one, please contact
davsclaus@apache.org.