fix API Gateway:create_usage_plan_key return wrong status code (#3134)
This commit is contained in:
parent
4e4ce5f9f1
commit
419f3fba5a
2 changed files with 2 additions and 3 deletions
|
|
@ -1989,6 +1989,7 @@ def test_usage_plan_keys():
|
|||
key_type = "API_KEY"
|
||||
payload = {"usagePlanId": usage_plan_id, "keyId": key_id, "keyType": key_type}
|
||||
response = client.create_usage_plan_key(**payload)
|
||||
response["ResponseMetadata"]["HTTPStatusCode"].should.equals(201)
|
||||
usage_plan_key_id = response["id"]
|
||||
|
||||
# Get current plan keys (expect 1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue