Skip to content

Commit 62593d5

Browse files
Fix ec2 xml nan/infinity protocol test case bodies
ec2 doesn't have the wrapper in the output.
1 parent 607bf92 commit 62593d5

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

smithy-aws-protocol-tests/model/ec2Query/xml-structs.smithy

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,8 @@ apply SimpleScalarXmlProperties @httpResponseTests([
6363
code: 200,
6464
body: """
6565
<SimpleScalarXmlPropertiesResponse xmlns="https://example.com/">
66-
<SimpleScalarXmlPropertiesResult>
67-
<floatValue>NaN</floatValue>
68-
<doubleValue>NaN</doubleValue>
69-
</SimpleScalarXmlPropertiesResult>
66+
<floatValue>NaN</floatValue>
67+
<DoubleDribble>NaN</DoubleDribble>
7068
</SimpleScalarXmlPropertiesResponse>
7169
""",
7270
bodyMediaType: "application/xml",
@@ -85,10 +83,8 @@ apply SimpleScalarXmlProperties @httpResponseTests([
8583
code: 200,
8684
body: """
8785
<SimpleScalarXmlPropertiesResponse xmlns="https://example.com/">
88-
<SimpleScalarXmlPropertiesResult>
89-
<floatValue>Infinity</floatValue>
90-
<doubleValue>Infinity</doubleValue>
91-
</SimpleScalarXmlPropertiesResult>
86+
<floatValue>Infinity</floatValue>
87+
<DoubleDribble>Infinity</DoubleDribble>
9288
</SimpleScalarXmlPropertiesResponse>
9389
""",
9490
bodyMediaType: "application/xml",
@@ -107,10 +103,8 @@ apply SimpleScalarXmlProperties @httpResponseTests([
107103
code: 200,
108104
body: """
109105
<SimpleScalarXmlPropertiesResponse xmlns="https://example.com/">
110-
<SimpleScalarXmlPropertiesResult>
111-
<floatValue>-Infinity</floatValue>
112-
<doubleValue>-Infinity</doubleValue>
113-
</SimpleScalarXmlPropertiesResult>
106+
<floatValue>-Infinity</floatValue>
107+
<DoubleDribble>-Infinity</DoubleDribble>
114108
</SimpleScalarXmlPropertiesResponse>
115109
""",
116110
bodyMediaType: "application/xml",

0 commit comments

Comments
 (0)