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:
Steven Hardy 2012-09-19 16:12:52 +01:00
parent 89a3cf01e8
commit 722da7e22c
2 changed files with 2 additions and 2 deletions

View File

@ -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',

View File

@ -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)