Fix : Remove Invalid request error when response-template is not specified (#3885)
* Fix : Remove Invalid request error * Fix test and review commanets * Remove duplicate put_integration_template * API Gateway - Body can be None or empty Co-authored-by: Bert Blommers <info@bertblommers.nl>
This commit is contained in:
parent
85d94ad6ed
commit
0cff5458af
3 changed files with 5 additions and 3 deletions
|
|
@ -1279,6 +1279,7 @@ def test_put_integration_response_requires_responseTemplate():
|
|||
)
|
||||
ex.value.response["Error"]["Code"].should.equal("BadRequestException")
|
||||
ex.value.response["Error"]["Message"].should.equal("Invalid request input")
|
||||
|
||||
# Works fine if responseTemplate is defined
|
||||
client.put_integration_response(
|
||||
restApiId=api_id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue