Skip to content

Commit

Permalink
Merge pull request #2353 from aws/joviegas/fix_integ_checksum
Browse files Browse the repository at this point in the history
Update Integ test failure where Conetent-encoding check is done only for putObjects
  • Loading branch information
davidh44 authored Jan 26, 2023
2 parents 6fcc677 + 76b1b89 commit 9630292
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,12 @@ void asyncHttpsValidUnsignedTrailerChecksumCalculatedBySdkClient_withSmallReques
.build(), AsyncRequestBody.fromString("Hello world")).join();
assertThat(interceptor.requestChecksumInTrailer()).isEqualTo("x-amz-checksum-crc32");
assertThat(interceptor.requestChecksumInHeader()).isNull();
assertThat(interceptor.contentEncoding()).isEqualTo("aws-chunked");

String response = s3Async.getObject(GetObjectRequest.builder().bucket(BUCKET)
.key(KEY).checksumMode(ChecksumMode.ENABLED)
.build(), AsyncResponseTransformer.toBytes()).join().asUtf8String();
assertThat(interceptor.validationAlgorithm()).isEqualTo(Algorithm.CRC32);
assertThat(interceptor.contentEncoding()).isEqualTo("aws-chunked");
assertThat(interceptor.responseValidation()).isEqualTo(ChecksumValidation.VALIDATED);
assertThat(response).isEqualTo("Hello world");
}
Expand Down

0 comments on commit 9630292

Please sign in to comment.