Skip to content

Commit

Permalink
Add noErrorWrapping protocol test for restXml
Browse files Browse the repository at this point in the history
  • Loading branch information
jvschneid authored and kstich committed Sep 1, 2023
1 parent c8ae4e6 commit 463ba80
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions smithy-aws-protocol-tests/model/restXml/services/s3.smithy
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,22 @@ service AmazonS3 {
},
},
])
@httpResponseTests([
{
id: "S3OperationNoErrorWrappingResponse",
documentation: """
S3 operations return Error XML nodes unwrapped by
the ErrorResponse XML node.
""",
protocol: restXml,
code: 400,
headers: {
"Content-Type": "application/xml"
},
body: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Error>\n\t<Type>Sender</Type>\n\t<Code>NoSuchBucket</Code>\n</Error>",
bodyMediaType: "application/xml",
}
])
@http(
method: "GET",
uri: "/{Bucket}?list-type=2",
Expand Down

0 comments on commit 463ba80

Please sign in to comment.