Fix race conditions in test_create_update
If two updates happen in the same second, stack updated_time does not change. This adds 'action_wait_secs' to have a different updated_time. Change-Id: Ie9d1c7fe83abfc7c9431e2d341392296cfd1f8df Closes-Bug: #1745276 Related-Bug: #1583630
This commit is contained in:
parent
797c9d4d66
commit
8d0a96f7af
|
@ -620,6 +620,8 @@ resources:
|
|||
# Fixing the template should fix the stack
|
||||
template = _change_rsrc_properties(template,
|
||||
['test1'], {'fail': False})
|
||||
template['resources']['test2'][
|
||||
'properties'] = {'action_wait_secs': {'update': 1}}
|
||||
self.update_stack(stack_identifier,
|
||||
template=template,
|
||||
environment=env)
|
||||
|
@ -649,6 +651,8 @@ resources:
|
|||
|
||||
template = _change_rsrc_properties(template,
|
||||
['test2'], {'value': 'Test2'})
|
||||
template['resources']['test1'][
|
||||
'properties']['action_wait_secs'] = {'create': 1}
|
||||
self.update_stack(stack_identifier,
|
||||
template=template,
|
||||
expected_status='UPDATE_FAILED')
|
||||
|
|
Loading…
Reference in New Issue