Skip to content

Commit

Permalink
Fix unbound operations/shapes in protocol tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kstich committed Sep 10, 2020
1 parent 502e0c8 commit a7c2ba7
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,4 +123,3 @@ apply EmptyInputAndEmptyOutput @httpResponseTests([
])

structure EmptyInputAndEmptyOutputInput {}
structure EmptyInputAndEmptyOutputOutput {}
5 changes: 5 additions & 0 deletions smithy-aws-protocol-tests/model/awsQuery/main.smithy
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,19 @@ service AwsQuery {
QueryMaps,
QueryIdempotencyTokenAutoFill,

// Output tests
XmlEmptyBlobs,

// Output XML map tests
XmlMaps,
XmlMapsXmlName,
FlattenedXmlMap,
FlattenedXmlMapWithXmlName,
XmlEmptyMaps,

// Output XML list tests
XmlLists,
XmlEmptyLists,

// Output XML structure tests
SimpleScalarXmlProperties,
Expand Down
4 changes: 4 additions & 0 deletions smithy-aws-protocol-tests/model/ec2Query/main.smithy
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,12 @@ service AwsEc2 {
QueryLists,
QueryIdempotencyTokenAutoFill,

// Output tests
XmlEmptyBlobs,

// Output XML list tests
XmlLists,
XmlEmptyLists,

// Output XML structure tests
SimpleScalarXmlProperties,
Expand Down
4 changes: 2 additions & 2 deletions smithy-aws-protocol-tests/model/restXml/document-lists.smithy
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ apply XmlLists @httpResponseTests([
])

@idempotent
@http(uri: "/XmlLists", method: "PUT")
@http(uri: "/XmlEmptyLists", method: "PUT")
@tags(["client-only"])
operation XmlEmptyLists {
input: XmlListsInputOutput,
Expand All @@ -231,7 +231,7 @@ apply XmlEmptyLists @httpRequestTests([
documentation: "Serializes Empty XML lists",
protocol: restXml,
method: "PUT",
uri: "/XmlLists",
uri: "/XmlEmptyLists",
body: """
<XmlListsInputOutput>
<stringList></stringList>
Expand Down
4 changes: 2 additions & 2 deletions smithy-aws-protocol-tests/model/restXml/document-maps.smithy
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ apply XmlMaps @httpResponseTests([
}
])

@http(uri: "/XmlMaps", method: "POST")
@http(uri: "/XmlEmptyMaps", method: "POST")
@tags(["client-only"])
operation XmlEmptyMaps {
input: XmlMapsInputOutput,
Expand All @@ -113,7 +113,7 @@ apply XmlEmptyMaps @httpRequestTests([
documentation: "Serializes Empty XML maps",
protocol: restXml,
method: "POST",
uri: "/XmlMaps",
uri: "/XmlEmptyMaps",
body: """
<XmlMapsInputOutput>
<myMap></myMap>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ apply XmlBlobs @httpResponseTests([
])

/// Blobs are base64 encoded
@http(uri: "/XmlBlobs", method: "POST")
@http(uri: "/XmlEmptyBlobs", method: "POST")
@tags(["client-only"])
operation XmlEmptyBlobs {
input: XmlBlobsInputOutput,
Expand Down
6 changes: 6 additions & 0 deletions smithy-aws-protocol-tests/model/restXml/main.smithy
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ service RestXml {
NoInputAndNoOutput,
NoInputAndOutput,
EmptyInputAndEmptyOutput,
XmlEmptyLists,
XmlEmptyMaps,
XmlEmptyStrings,

// @httpHeader tests
InputAndOutputWithHeaders,
Expand Down Expand Up @@ -48,6 +51,9 @@ service RestXml {
HttpPayloadWithXmlNamespace,
HttpPayloadWithXmlNamespaceAndPrefix,

// Output tests
XmlEmptyBlobs,

// Errors
GreetingWithErrors,

Expand Down

0 comments on commit a7c2ba7

Please sign in to comment.