Skip to content

Commit

Permalink
Upgrade AWS SDK to 2.30; update tests to disable default integrity pr…
Browse files Browse the repository at this point in the history
…otection (apache#14909)
  • Loading branch information
yashmayya authored and gortiz committed Jan 24, 2025
1 parent 6505f89 commit f3bb6af
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
import org.testng.annotations.Test;
import software.amazon.awssdk.auth.credentials.AwsBasicCredentials;
import software.amazon.awssdk.auth.credentials.StaticCredentialsProvider;
import software.amazon.awssdk.core.checksums.RequestChecksumCalculation;
import software.amazon.awssdk.core.checksums.ResponseChecksumValidation;
import software.amazon.awssdk.core.sync.RequestBody;
import software.amazon.awssdk.regions.Region;
import software.amazon.awssdk.services.s3.S3Client;
Expand Down Expand Up @@ -527,6 +529,9 @@ private static S3Client createS3ClientV2(String endpoint) {
return S3Client.builder().region(Region.of("us-east-1"))
.credentialsProvider(StaticCredentialsProvider.create(AwsBasicCredentials.create("foo", "bar")))
.serviceConfiguration(S3Configuration.builder().pathStyleAccessEnabled(true).build())
.endpointOverride(URI.create(endpoint)).build();
.endpointOverride(URI.create(endpoint))
.responseChecksumValidation(ResponseChecksumValidation.WHEN_REQUIRED)
.requestChecksumCalculation(RequestChecksumCalculation.WHEN_REQUIRED)
.build();
}
}
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
<audienceannotations.version>0.15.0</audienceannotations.version>
<clp-ffi.version>0.4.7</clp-ffi.version>
<stax2-api.version>4.2.2</stax2-api.version>
<aws.sdk.version>2.29.52</aws.sdk.version>
<aws.sdk.version>2.30.4</aws.sdk.version>
<azure.sdk.version>1.2.30</azure.sdk.version>
<azure.msal4j.version>1.18.0</azure.msal4j.version>
<joda-time.version>2.13.0</joda-time.version>
Expand Down

0 comments on commit f3bb6af

Please sign in to comment.