Skip to content

Commit

Permalink
update rest-json protocol test to latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
jasdel committed Nov 9, 2021
1 parent e04cf04 commit 8b1e312
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

0 comments on commit 8b1e312

Please sign in to comment.