Skip to content

Commit

Permalink
update rest-json protocol test to latest version (#4132)
Browse files Browse the repository at this point in the history
Updates the SDK's REST-JSON protocol tests to add additional payload/content-type cases.
  • Loading branch information
jasdel authored Dec 7, 2021
1 parent 1affa97 commit 82630e1
Show file tree
Hide file tree
Showing 2 changed files with 250 additions and 55 deletions.
36 changes: 32 additions & 4 deletions models/protocol_tests/input/rest-json.json
Original file line number Diff line number Diff line change
Expand Up @@ -1406,7 +1406,10 @@
},
"serialized": {
"uri": "/?Bar=%7B%22Foo%22%3A%22Bar%22%7D",
"headers": {"X-Amz-Foo": "eyJGb28iOiJCYXIifQ=="},
"headers": {
"X-Amz-Foo": "eyJGb28iOiJCYXIifQ==",
"Content-Type": "application/json"
},
"body": "{\"BodyField\":\"{\\\"Foo\\\":\\\"Bar\\\"}\"}"
}
},
Expand All @@ -1427,7 +1430,9 @@
},
"serialized": {
"uri": "/",
"headers": {},
"headers": {
"Content-Type": "application/json"
},
"body": "{\"BodyListField\":[\"{\\\"Foo\\\":\\\"Bar\\\"}\"]}"
}
},
Expand All @@ -1445,8 +1450,10 @@
},
"serialized": {
"uri": "/",
"headers": {},
"body": ""
"headers": {
"Content-Type": "application/json"
},
"body": "{}"
}
}
]
Expand Down Expand Up @@ -1898,6 +1905,27 @@
"host": "rest-test.amazonaws.com"
}
},
{
"given": {
"name": "TestBodyNoParams",
"input": {
"shape": "TestBodyRequest"
},
"http": {
"method": "POST",
"requestUri": "/body"
}
},
"params": {},
"serialized": {
"uri": "/body",
"body": "{}",
"headers": {
"Content-Type": "application/json"
},
"host": "rest-test.amazonaws.com"
}
},
{
"given": {
"name": "TestPayloadNoParams",
Expand Down
Loading

0 comments on commit 82630e1

Please sign in to comment.