From 5b2d0ab73eea537d660d1ca3d1d7dd625e3778d2 Mon Sep 17 00:00:00 2001 From: kstich Date: Tue, 23 Feb 2021 09:53:04 -0800 Subject: [PATCH] Fix multiple endpoint protocol tests --- docs/source/1.0/spec/aws/aws-ec2-query-protocol.rst | 3 ++- smithy-aws-protocol-tests/model/ec2Query/endpoints.smithy | 2 +- smithy-aws-protocol-tests/model/restJson1/endpoints.smithy | 2 +- smithy-aws-protocol-tests/model/restXml/endpoints.smithy | 4 ++-- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/source/1.0/spec/aws/aws-ec2-query-protocol.rst b/docs/source/1.0/spec/aws/aws-ec2-query-protocol.rst index 4d0bf945b5e..47589f48416 100644 --- a/docs/source/1.0/spec/aws/aws-ec2-query-protocol.rst +++ b/docs/source/1.0/spec/aws/aws-ec2-query-protocol.rst @@ -143,7 +143,8 @@ resolved using the following process: member, if present. 2. Use the value of the :ref:`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 diff --git a/smithy-aws-protocol-tests/model/ec2Query/endpoints.smithy b/smithy-aws-protocol-tests/model/ec2Query/endpoints.smithy index 657ce37dbba..360d066c538 100644 --- a/smithy-aws-protocol-tests/model/ec2Query/endpoints.smithy +++ b/smithy-aws-protocol-tests/model/ec2Query/endpoints.smithy @@ -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", diff --git a/smithy-aws-protocol-tests/model/restJson1/endpoints.smithy b/smithy-aws-protocol-tests/model/restJson1/endpoints.smithy index f7bd74a566a..52a07da3a65 100644 --- a/smithy-aws-protocol-tests/model/restJson1/endpoints.smithy +++ b/smithy-aws-protocol-tests/model/restJson1/endpoints.smithy @@ -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", diff --git a/smithy-aws-protocol-tests/model/restXml/endpoints.smithy b/smithy-aws-protocol-tests/model/restXml/endpoints.smithy index b926237423d..4420dd6eec2 100644 --- a/smithy-aws-protocol-tests/model/restXml/endpoints.smithy +++ b/smithy-aws-protocol-tests/model/restXml/endpoints.smithy @@ -36,7 +36,7 @@ operation EndpointOperation {} further customization based on user input.""", protocol: restXml, method: "POST", - uri: "/EndpointOperation", + uri: "/EndpointWithHostLabelOperation", body: """ @@ -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",