Improve implementation coverage
This commit is contained in:
parent
5508da186b
commit
20784a2d67
7 changed files with 378 additions and 67 deletions
|
|
@ -541,7 +541,7 @@ class ResourceMap(collections_abc.Mapping):
|
|||
if name == "AWS::Include":
|
||||
location = params["Location"]
|
||||
bucket_name, name = bucket_and_name_from_url(location)
|
||||
key = s3_backend.get_key(bucket_name, name)
|
||||
key = s3_backend.get_object(bucket_name, name)
|
||||
self._parsed_resources.update(json.loads(key.value))
|
||||
|
||||
def load_parameters(self):
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ class CloudFormationResponse(BaseResponse):
|
|||
bucket_name = template_url_parts.netloc.split(".")[0]
|
||||
key_name = template_url_parts.path.lstrip("/")
|
||||
|
||||
key = s3_backend.get_key(bucket_name, key_name)
|
||||
key = s3_backend.get_object(bucket_name, key_name)
|
||||
return key.value.decode("utf-8")
|
||||
|
||||
def create_stack(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue