You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by st...@apache.org on 2020/10/21 12:01:35 UTC

[hadoop] branch trunk updated: HADOOP-17305. Fix ITestCustomSigner to work with s3 compatible endpoints (#2395)

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

stevel pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 7f8ef76  HADOOP-17305. Fix ITestCustomSigner to work with s3 compatible endpoints (#2395)
7f8ef76 is described below

commit 7f8ef76c4833262f60cac2956aaa7fb75c0a77bc
Author: Mukund Thakur <mt...@cloudera.com>
AuthorDate: Wed Oct 21 17:31:13 2020 +0530

    HADOOP-17305. Fix ITestCustomSigner to work with s3 compatible endpoints (#2395)
    
    
    Contributed by Mukund Thakur
---
 .../test/java/org/apache/hadoop/fs/s3a/auth/ITestCustomSigner.java  | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/auth/ITestCustomSigner.java b/hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/auth/ITestCustomSigner.java
index 2e13deb..d9cb1d9 100644
--- a/hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/auth/ITestCustomSigner.java
+++ b/hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/auth/ITestCustomSigner.java
@@ -133,11 +133,7 @@ public class ITestCustomSigner extends AbstractS3ATestBase {
   }
 
   private String determineRegion(String bucketName) throws IOException {
-    AmazonS3 s3 = AmazonS3ClientBuilder.standard().withCredentials(
-        new SimpleAWSCredentialsProvider(null, createConfiguration()))
-        .withForceGlobalBucketAccessEnabled(true).withRegion("us-east-1")
-        .build();
-    String region = s3.getBucketLocation(bucketName);
+    String region = getFileSystem().getBucketLocation(bucketName);
     return fixBucketRegion(region);
   }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org