Refector Apigateway update_usage_plan and add all replace operation. (#3942)
* Refector Apigateway update_usage_plan and add all replace operation. * code reformatting Co-authored-by: rajinder saini <rajinder.saini@c02vt5k2htd6.corp.climate.com>
This commit is contained in:
parent
79792db4c0
commit
58f7ab0d25
2 changed files with 29 additions and 16 deletions
|
|
@ -2081,12 +2081,17 @@ def test_update_usage_plan():
|
|||
{"op": "replace", "path": "/quota/period", "value": "MONTH"},
|
||||
{"op": "replace", "path": "/throttle/rateLimit", "value": "500"},
|
||||
{"op": "replace", "path": "/throttle/burstLimit", "value": "1500"},
|
||||
{"op": "replace", "path": "/name", "value": "new-name"},
|
||||
{"op": "replace", "path": "/description", "value": "new-description"},
|
||||
{"op": "replace", "path": "/productCode", "value": "new-productionCode"},
|
||||
],
|
||||
)
|
||||
response["quota"]["limit"].should.equal("1000")
|
||||
response["quota"]["period"].should.equal("MONTH")
|
||||
response["quota"]["limit"].should.equal("1000")
|
||||
response["quota"]["limit"].should.equal("1000")
|
||||
response["name"].should.equal("new-name")
|
||||
response["description"].should.equal("new-description")
|
||||
response["productCode"].should.equal("new-productionCode")
|
||||
|
||||
|
||||
@mock_apigateway
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue