Fix api gateway callback.
This commit is contained in:
parent
3c0c4c2996
commit
b73360c187
@ -339,9 +339,11 @@ class RestAPI(object):
|
||||
return status_code, {}, response
|
||||
|
||||
def update_integration_mocks(self, stage_name):
|
||||
stage_url = STAGE_URL.format(api_id=self.id.upper(),
|
||||
stage_url = STAGE_URL.format(api_id=self.id,
|
||||
region_name=self.region_name, stage_name=stage_name)
|
||||
responses.add_callback(responses.GET, stage_url,
|
||||
responses.add_callback(responses.GET, stage_url.upper(),
|
||||
callback=self.resource_callback)
|
||||
responses.add_callback(responses.GET, stage_url.lower(),
|
||||
callback=self.resource_callback)
|
||||
|
||||
def create_stage(self, name, deployment_id, variables=None, description='', cacheClusterEnabled=None, cacheClusterSize=None):
|
||||
|
Loading…
Reference in New Issue
Block a user