Skip to content

Commit

Permalink
Fix multiple endpoint protocol tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kstich committed Feb 23, 2021
1 parent 687d4fa commit 5b2d0ab
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion docs/source/1.0/spec/aws/aws-ec2-query-protocol.rst
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ resolved using the following process:
member, if present.
2. Use the value of the :ref:`xmlName trait <xmlName-trait>` applied to the
member with the first letter capitalized, if present.
3. Use the default value for the member:
3. Use the default value for the member with the first letter capitalized, if
present:

.. list-table::
:header-rows: 1
Expand Down
2 changes: 1 addition & 1 deletion smithy-aws-protocol-tests/model/ec2Query/endpoints.smithy
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ operation EndpointOperation {}
body: """
Action=EndpointWithHostLabelOperation
&Version=2020-01-08
&label=bar""",
&Label=bar""",
bodyMediaType: "application/x-www-form-urlencoded",
host: "example.com",
resolvedHost: "foo.bar.example.com",
Expand Down
2 changes: 1 addition & 1 deletion smithy-aws-protocol-tests/model/restJson1/endpoints.smithy
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ operation EndpointOperation {}
further customization based on user input.""",
protocol: restJson1,
method: "POST",
uri: "/EndpointOperation",
uri: "/EndpointWithHostLabelOperation",
body: "{\"label\": \"bar\"}",
bodyMediaType: "application/json",
host: "example.com",
Expand Down
4 changes: 2 additions & 2 deletions smithy-aws-protocol-tests/model/restXml/endpoints.smithy
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ operation EndpointOperation {}
further customization based on user input.""",
protocol: restXml,
method: "POST",
uri: "/EndpointOperation",
uri: "/EndpointWithHostLabelOperation",
body: """
<HostLabelInput>
<label>bar</label>
Expand Down Expand Up @@ -73,7 +73,7 @@ structure HostLabelInput {
as the body or in this case an http header.""",
protocol: restXml,
method: "POST",
uri: "/EndpointOperation",
uri: "/EndpointWithHostLabelHeaderOperation",
body: "",
bodyMediaType: "application/xml",
host: "example.com",
Expand Down

0 comments on commit 5b2d0ab

Please sign in to comment.