Fixes issue #575: cloudformation update_stack response ResponseParserError.
This commit is contained in:
parent
100ec4e7c8
commit
3017181862
4 changed files with 81 additions and 28 deletions
|
|
@ -263,24 +263,24 @@ def test_stack_tags():
|
|||
dict(stack.tags).should.equal({"foo": "bar", "baz": "bleh"})
|
||||
|
||||
|
||||
# @mock_cloudformation
|
||||
# def test_update_stack():
|
||||
# conn = boto.connect_cloudformation()
|
||||
# conn.create_stack(
|
||||
# "test_stack",
|
||||
# template_body=dummy_template_json,
|
||||
# )
|
||||
@mock_cloudformation
|
||||
def test_update_stack():
|
||||
conn = boto.connect_cloudformation()
|
||||
conn.create_stack(
|
||||
"test_stack",
|
||||
template_body=dummy_template_json,
|
||||
)
|
||||
|
||||
# conn.update_stack("test_stack", dummy_template_json2)
|
||||
conn.update_stack("test_stack", dummy_template_json2)
|
||||
|
||||
# stack = conn.describe_stacks()[0]
|
||||
# stack.get_template().should.equal({
|
||||
# 'GetTemplateResponse': {
|
||||
# 'GetTemplateResult': {
|
||||
# 'TemplateBody': dummy_template_json2,
|
||||
# 'ResponseMetadata': {
|
||||
# 'RequestId': '2d06e36c-ac1d-11e0-a958-f9382b6eb86bEXAMPLE'
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
# })
|
||||
stack = conn.describe_stacks()[0]
|
||||
stack.get_template().should.equal({
|
||||
'GetTemplateResponse': {
|
||||
'GetTemplateResult': {
|
||||
'TemplateBody': dummy_template_json2,
|
||||
'ResponseMetadata': {
|
||||
'RequestId': '2d06e36c-ac1d-11e0-a958-f9382b6eb86bEXAMPLE'
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue