Skip to content

Commit

Permalink
Move noErrorWrapping test into error shape
Browse files Browse the repository at this point in the history
  • Loading branch information
jvschneid authored and kstich committed Sep 1, 2023
1 parent 463ba80 commit 1412661
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions smithy-aws-protocol-tests/model/restXml/services/s3.smithy
Original file line number Diff line number Diff line change
Expand Up @@ -255,22 +255,6 @@ 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 Expand Up @@ -480,6 +464,22 @@ structure DeleteObjectTaggingOutput {
VersionId: ObjectVersionId
}

@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",
}
])
@error("client")
structure NoSuchBucket {}

Expand Down

0 comments on commit 1412661

Please sign in to comment.