From 715b1d94ab14764ad43496b016b0c2e85bcf1d1f Mon Sep 17 00:00:00 2001 From: Manuel Sugawara Date: Fri, 28 Oct 2022 16:15:10 -0700 Subject: [PATCH] Reverse the logic of protocol tests for aws and ec2 query for empty lists (#1444) Currently both aws query and ec2 query do serialize empty lists --- smithy-aws-protocol-tests/model/awsQuery/input-lists.smithy | 4 ++-- smithy-aws-protocol-tests/model/ec2Query/input-lists.smithy | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/smithy-aws-protocol-tests/model/awsQuery/input-lists.smithy b/smithy-aws-protocol-tests/model/awsQuery/input-lists.smithy index 42987feeac2..d5ff44ce05a 100644 --- a/smithy-aws-protocol-tests/model/awsQuery/input-lists.smithy +++ b/smithy-aws-protocol-tests/model/awsQuery/input-lists.smithy @@ -42,14 +42,14 @@ apply QueryLists @httpRequestTests([ }, { id: "EmptyQueryLists", - documentation: "Does not serialize empty query lists", + documentation: "Serializes empty query lists", protocol: awsQuery, method: "POST", uri: "/", headers: { "Content-Type": "application/x-www-form-urlencoded" }, - body: "Action=QueryLists&Version=2020-01-08", + body: "Action=QueryLists&Version=2020-01-08&ListArg=", bodyMediaType: "application/x-www-form-urlencoded", params: { ListArg: [] diff --git a/smithy-aws-protocol-tests/model/ec2Query/input-lists.smithy b/smithy-aws-protocol-tests/model/ec2Query/input-lists.smithy index d22d30bdd82..07eeb8ee274 100644 --- a/smithy-aws-protocol-tests/model/ec2Query/input-lists.smithy +++ b/smithy-aws-protocol-tests/model/ec2Query/input-lists.smithy @@ -42,14 +42,14 @@ apply QueryLists @httpRequestTests([ }, { id: "Ec2EmptyQueryLists", - documentation: "Does not serialize empty query lists", + documentation: "Serializes empty query lists", protocol: ec2Query, method: "POST", uri: "/", headers: { "Content-Type": "application/x-www-form-urlencoded" }, - body: "Action=QueryLists&Version=2020-01-08", + body: "Action=QueryLists&Version=2020-01-08&ListArg=", bodyMediaType: "application/x-www-form-urlencoded", params: { ListArg: []