orchestration api test_stacks wait for deletion
Wait for delete to complete after triggering it, so we avoid
a conflict exception when the test _clear_stacks cleanup tries
to delete it again.
Change-Id: I64065ad8444d814e2cd7f162b869a2f8eedb1fad
Closes-Bug: #1344989
diff --git a/tempest/api/orchestration/stacks/test_stacks.py b/tempest/api/orchestration/stacks/test_stacks.py
index 5b45d82..d5e66e8 100644
--- a/tempest/api/orchestration/stacks/test_stacks.py
+++ b/tempest/api/orchestration/stacks/test_stacks.py
@@ -64,3 +64,4 @@
# delete the stack
resp = self.client.delete_stack(stack_identifier)
self.assertEqual('204', resp[0]['status'])
+ self.client.wait_for_stack_status(stack_identifier, 'DELETE_COMPLETE')