Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix multiple endpoint protocol tests #720

Merged
merged 1 commit into from
Feb 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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