Skip to content

Commit 76b1b89

Browse files
committed
Update Integ test failure where Conetent-encoding check is done only for putObject calls
1 parent 6fcc677 commit 76b1b89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/s3/src/it/java/software/amazon/awssdk/services/s3/checksum/AsyncHttpChecksumIntegrationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,12 @@ void asyncHttpsValidUnsignedTrailerChecksumCalculatedBySdkClient_withSmallReques
111111
.build(), AsyncRequestBody.fromString("Hello world")).join();
112112
assertThat(interceptor.requestChecksumInTrailer()).isEqualTo("x-amz-checksum-crc32");
113113
assertThat(interceptor.requestChecksumInHeader()).isNull();
114+
assertThat(interceptor.contentEncoding()).isEqualTo("aws-chunked");
114115

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

0 commit comments

Comments
 (0)