Skip to content

Commit

Permalink
Split test into client vs. dual
Browse files Browse the repository at this point in the history
Add applies to client to the complex test and bring the old test back for clients & servers.
  • Loading branch information
rcoh authored and JordonPhillips committed May 25, 2021
1 parent d487ca4 commit 05f121a
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion smithy-aws-protocol-tests/model/restXml/document-structs.smithy
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,14 @@ apply SimpleScalarProperties @httpResponseTests([
}
},
{
id: "SimpleScalarPropertiesWithEscapedCharacter",
id: "SimpleScalarPropertiesComplexEscapes",
documentation: """
Serializes string with escaping.
This validates the three escape types: literal, decimal and hexadecimal. It also validates that unescaping properly
handles the case where unescaping an & produces a newly formed escape sequence (this should not be re-unescaped).
Servers may produce different output, this test is designed different unescapes clients must handle
""",
protocol: restXml,
code: 200,
Expand All @@ -164,6 +166,27 @@ apply SimpleScalarProperties @httpResponseTests([
params: {
foo: "Foo",
stringValue: "escaped data: <\r\n",
},
appliesTo: "client",
},
{
id: "SimpleScalarPropertiesWithEscapedCharacter",
documentation: "Serializes string with escaping",
protocol: restXml,
code: 200,
body: """
<SimpleScalarPropertiesInputOutput>
<stringValue>&lt;string&gt;</stringValue>
</SimpleScalarPropertiesInputOutput>
""",
bodyMediaType: "application/xml",
headers: {
"Content-Type": "application/xml",
"X-Foo": "Foo",
},
params: {
foo: "Foo",
stringValue: "<string>",
}
},
{
Expand Down

0 comments on commit 05f121a

Please sign in to comment.