From cc57eff2b4723dd92c2cdeea6e83ef9069f43dba Mon Sep 17 00:00:00 2001 From: Steven Yuan Date: Wed, 1 May 2024 14:30:55 -0400 Subject: [PATCH] Revert EC2 Query Protocol empty list serialization Empty lists are NOT serialized for the EC2 query protocol, which differs from the AWS query protocol. See "EmptyQueryLists" for the AWS query protocol equivalent test case. --- smithy-aws-protocol-tests/model/ec2Query/input-lists.smithy | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/smithy-aws-protocol-tests/model/ec2Query/input-lists.smithy b/smithy-aws-protocol-tests/model/ec2Query/input-lists.smithy index 07eeb8ee274..12425358e9c 100644 --- a/smithy-aws-protocol-tests/model/ec2Query/input-lists.smithy +++ b/smithy-aws-protocol-tests/model/ec2Query/input-lists.smithy @@ -42,14 +42,16 @@ apply QueryLists @httpRequestTests([ }, { id: "Ec2EmptyQueryLists", - documentation: "Serializes empty query lists", + // Empty lists are NOT serialized for the EC2 query protocol, which differs from the AWS query protocol. + // See "EmptyQueryLists" for the AWS query protocol equivalent test case. + documentation: "Does not serialize empty query lists.", protocol: ec2Query, method: "POST", uri: "/", headers: { "Content-Type": "application/x-www-form-urlencoded" }, - body: "Action=QueryLists&Version=2020-01-08&ListArg=", + body: "Action=QueryLists&Version=2020-01-08", bodyMediaType: "application/x-www-form-urlencoded", params: { ListArg: []