Merge pull request #1446 from koxudaxi/fix_get_templates_test
Remove unneeded comments and fix test code on cloudformationstack tests
This commit is contained in:
commit
3e27990613
@ -1,6 +1,7 @@
|
|||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
import json
|
import json
|
||||||
|
from collections import OrderedDict
|
||||||
|
|
||||||
import boto3
|
import boto3
|
||||||
from botocore.exceptions import ClientError
|
from botocore.exceptions import ClientError
|
||||||
@ -160,8 +161,8 @@ def test_boto3_create_stack():
|
|||||||
TemplateBody=dummy_template_json,
|
TemplateBody=dummy_template_json,
|
||||||
)
|
)
|
||||||
|
|
||||||
json.loads(json.dumps(cf_conn.get_template(StackName="test_stack")['TemplateBody'])).should.equal(
|
cf_conn.get_template(StackName="test_stack")['TemplateBody'].should.equal(
|
||||||
dummy_template)
|
json.loads(dummy_template_json, object_pairs_hook=OrderedDict))
|
||||||
|
|
||||||
|
|
||||||
@mock_cloudformation
|
@mock_cloudformation
|
||||||
@ -270,10 +271,8 @@ def test_create_stack_from_s3_url():
|
|||||||
StackName='stack_from_url',
|
StackName='stack_from_url',
|
||||||
TemplateURL=key_url,
|
TemplateURL=key_url,
|
||||||
)
|
)
|
||||||
# from IPython import embed
|
cf_conn.get_template(StackName="stack_from_url")['TemplateBody'].should.equal(
|
||||||
# embed()
|
json.loads(dummy_template_json, object_pairs_hook=OrderedDict))
|
||||||
json.loads(json.dumps(cf_conn.get_template(StackName="stack_from_url")[
|
|
||||||
'TemplateBody'])).should.equal(dummy_template)
|
|
||||||
|
|
||||||
|
|
||||||
@mock_cloudformation
|
@mock_cloudformation
|
||||||
@ -307,8 +306,8 @@ def test_update_stack_from_s3_url():
|
|||||||
TemplateURL=key_url,
|
TemplateURL=key_url,
|
||||||
)
|
)
|
||||||
|
|
||||||
json.loads(json.dumps(cf_conn.get_template(StackName="update_stack_from_url")[
|
cf_conn.get_template(StackName="update_stack_from_url")[ 'TemplateBody'].should.equal(
|
||||||
'TemplateBody'])).should.equal(dummy_update_template)
|
json.loads(dummy_update_template_json, object_pairs_hook=OrderedDict))
|
||||||
|
|
||||||
|
|
||||||
@mock_cloudformation
|
@mock_cloudformation
|
||||||
|
Loading…
Reference in New Issue
Block a user