heat API : fix wrongly named key for stack events
We return a key of "ResourceStatusData", should be "ResourceStatusReason" Fixes #244 Change-Id: I692825b0c800815777e9f73bd7060a108e16e45a Signed-off-by: Steven Hardy <shardy@redhat.com>
This commit is contained in:
parent
89a3cf01e8
commit
722da7e22c
@ -428,7 +428,7 @@ class StackController(object):
|
|||||||
engine_api.EVENT_RES_PHYSICAL_ID: 'PhysicalResourceId',
|
engine_api.EVENT_RES_PHYSICAL_ID: 'PhysicalResourceId',
|
||||||
engine_api.EVENT_RES_PROPERTIES: 'ResourceProperties',
|
engine_api.EVENT_RES_PROPERTIES: 'ResourceProperties',
|
||||||
engine_api.EVENT_RES_STATUS: 'ResourceStatus',
|
engine_api.EVENT_RES_STATUS: 'ResourceStatus',
|
||||||
engine_api.EVENT_RES_STATUS_DATA: 'ResourceStatusData',
|
engine_api.EVENT_RES_STATUS_DATA: 'ResourceStatusReason',
|
||||||
engine_api.EVENT_RES_TYPE: 'ResourceType',
|
engine_api.EVENT_RES_TYPE: 'ResourceType',
|
||||||
engine_api.EVENT_STACK_ID: 'StackId',
|
engine_api.EVENT_STACK_ID: 'StackId',
|
||||||
engine_api.EVENT_STACK_NAME: 'StackName',
|
engine_api.EVENT_STACK_NAME: 'StackName',
|
||||||
|
@ -824,7 +824,7 @@ class StackControllerTest(unittest.TestCase):
|
|||||||
'StackName': u'wordpress',
|
'StackName': u'wordpress',
|
||||||
'ResourceProperties': {u'UserData': u'blah'},
|
'ResourceProperties': {u'UserData': u'blah'},
|
||||||
'PhysicalResourceId': None,
|
'PhysicalResourceId': None,
|
||||||
'ResourceStatusData': u'state changed',
|
'ResourceStatusReason': u'state changed',
|
||||||
'LogicalResourceId': u'WikiDatabase'}]}}}
|
'LogicalResourceId': u'WikiDatabase'}]}}}
|
||||||
|
|
||||||
self.assertEqual(response, expected)
|
self.assertEqual(response, expected)
|
||||||
|
Loading…
Reference in New Issue
Block a user