Wait for stack status instead of group status
SUSPEND happens in reverse order, so waiting for the group to reach SUSPEND_COMPLETE/SUSPEND_FAILED would result in timeout, if SUSPEND for the policy resource fails. Change-Id: Ie690d49734d164554ee6cf6c11f8c45a2832a8fe Related-Bug: #1595819
This commit is contained in:
parent
b7d59bbb1b
commit
1424a76407
|
@ -726,8 +726,9 @@ outputs:
|
|||
|
||||
# suspend the top level stack.
|
||||
self.client.actions.suspend(stack_id=stack_identifier)
|
||||
self._wait_for_resource_status(
|
||||
stack_identifier, 'JobServerGroup', 'SUSPEND_COMPLETE')
|
||||
|
||||
# Wait for stack to reach SUSPEND_COMPLETE
|
||||
self._wait_for_stack_status(stack_identifier, 'SUSPEND_COMPLETE')
|
||||
|
||||
# Send a signal and an exception will raise
|
||||
ex = self.assertRaises(exc.BadRequest,
|
||||
|
|
Loading…
Reference in New Issue