HADOOP-17305. Fix ITestCustomSigner to work with s3 compatible endpoints (#2395)

Contributed by Mukund Thakur
This commit is contained in:
Mukund Thakur 2020-10-21 17:31:13 +05:30 committed by GitHub
parent 88a9f42f32
commit 7f8ef76c48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 5 deletions

View File

@ -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);
}