heat tests : fix CFN_API_Actions test fix state reason

state reason is "state changed" not None now we commit
the IN_PROGRESS state transition to the DB

Change-Id: I4c6641cd489de13ee9575fcdf879cae95ad7df4d
Signed-off-by: Steven Hardy <shardy@redhat.com>
This commit is contained in:
Steven Hardy 2012-10-23 13:42:15 +01:00
parent 445a1fdf78
commit dd6a378152
2 changed files with 6 additions and 6 deletions

View File

@ -318,7 +318,7 @@ class CfnApiFunctionalTest(unittest.TestCase):
status_reason = self.stack.response_xml_item(response, prefix,
"ResourceStatusReason")
self.assertEqual(status_reason, "None")
self.assertEqual(status_reason, "state changed")
stack_name = self.stack.response_xml_item(response, prefix,
"StackName")
@ -363,7 +363,7 @@ class CfnApiFunctionalTest(unittest.TestCase):
status_reason = self.stack.response_xml_item(response, prefix,
"ResourceStatusReason")
self.assertEqual(status_reason, "None")
self.assertEqual(status_reason, "state changed")
stack_name = self.stack.response_xml_item(response, prefix,
"StackName")
@ -392,7 +392,7 @@ class CfnApiFunctionalTest(unittest.TestCase):
status_reason = self.stack.response_xml_item(response, prefix,
"ResourceStatusReason")
self.assertEqual(status_reason, "None")
self.assertEqual(status_reason, "state changed")
update_time = self.stack.response_xml_item(response, prefix,
"LastUpdatedTimestamp")

View File

@ -279,7 +279,7 @@ class CfnApiBotoFunctionalTest(unittest.TestCase):
self.assertTrue(self.time_re.match(res['LastUpdatedTimestamp'])
!= None)
self.assertEqual(res['ResourceStatusReason'], None)
self.assertEqual(res['ResourceStatusReason'], 'state changed')
self.assertEqual(res['StackName'], self.stack.stackname)
@ -309,7 +309,7 @@ class CfnApiBotoFunctionalTest(unittest.TestCase):
self.assertEqual(type(res.timestamp), datetime.datetime)
self.assertEqual(res.resource_status_reason, 'None')
self.assertEqual(res.resource_status_reason, 'state changed')
self.assertEqual(res.stack_name, self.stack.stackname)
@ -331,7 +331,7 @@ class CfnApiBotoFunctionalTest(unittest.TestCase):
self.assertEqual(res.resource_status, self.logical_resource_status)
self.assertEqual(res.resource_status_reason, 'None')
self.assertEqual(res.resource_status_reason, 'state changed')
self.assertEqual(type(res.last_updated_timestamp), datetime.datetime)