File tree Expand file tree Collapse file tree 1 file changed +1
-12
lines changed
services/s3/src/it/java/software/amazon/awssdk/services/s3 Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -158,18 +158,7 @@ public void asyncHeadBucketWrongRegion() {
158
158
}).hasCauseInstanceOf (S3Exception .class )
159
159
.satisfies (e -> assertThat (((S3Exception ) (e .getCause ())).statusCode ()).isEqualTo (301 ));
160
160
}
161
-
162
- @ Test
163
- @ Ignore ("TODO" )
164
- public void errorResponseContainsRawBytes () {
165
- assertThatThrownBy (() -> s3 .getObjectAcl (b -> b .bucket (BUCKET + KEY ).key (KEY )))
166
- .isInstanceOf (NoSuchBucketException .class )
167
- .satisfies (e -> assertThat (
168
- ((NoSuchBucketException ) e ).awsErrorDetails ().rawResponse ().asString (StandardCharsets .UTF_8 ))
169
- .startsWith ("<?xml version=\" 1.0\" encoding=\" UTF-8\" ?>\n <Error><Code>NoSuchBucket</Code><Message>The "
170
- + "specified bucket does not exist</Message>" ));
171
- }
172
-
161
+
173
162
private void assertMetadata (S3Exception e , String expectedErrorCode ) {
174
163
assertThat (e .awsErrorDetails ()).satisfies (
175
164
errorDetails -> {
You can’t perform that action at this time.
0 commit comments