This commit is contained in:
Bert Blommers 2020-05-04 09:27:57 +01:00
commit d6875c25cc
2 changed files with 13 additions and 7 deletions

View file

@ -1230,6 +1230,7 @@ def test_put_integration_response_requires_responseTemplate():
responseTemplates={},
)
@mock_apigateway
def test_put_integration_response_with_response_template():
client = boto3.client("apigateway", region_name="us-west-2")
@ -1268,9 +1269,9 @@ def test_put_integration_response_with_response_template():
resourceId=root_id,
httpMethod="GET",
statusCode="200",
selectionPattern= "foobar",
responseTemplates={"application/json": json.dumps({"data":"test"})})
selectionPattern="foobar",
responseTemplates={"application/json": json.dumps({"data": "test"})},
)
response = client.get_integration_response(
restApiId=api_id, resourceId=root_id, httpMethod="GET", statusCode="200"
@ -1284,10 +1285,11 @@ def test_put_integration_response_with_response_template():
"statusCode": "200",
"selectionPattern": "foobar",
"ResponseMetadata": {"HTTPStatusCode": 200},
"responseTemplates": {"application/json": json.dumps({"data":"test"})},
"responseTemplates": {"application/json": json.dumps({"data": "test"})},
}
)
@mock_apigateway
def test_put_integration_validation():
client = boto3.client("apigateway", region_name="us-west-2")