fix #3131 fix API Gateway:delete_api_key return wrong status code (#3132)

* fix #3131 fix API Gateway:delete_api_key return wrong status code

* lint
This commit is contained in:
cm-iwata 2020-07-15 17:41:41 +09:00 committed by GitHub
commit 1b355f7f06
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View file

@ -1906,7 +1906,8 @@ def test_api_keys():
response = client.get_api_keys()
len(response["items"]).should.equal(2)
client.delete_api_key(apiKey=apikey_id)
response = client.delete_api_key(apiKey=apikey_id)
response["ResponseMetadata"]["HTTPStatusCode"].should.equal(202)
response = client.get_api_keys()
len(response["items"]).should.equal(1)