Wait until stack deletion is completed at test cleanup

Some faults tests are not stable because stack deletion is not completed during
the cleanup of the previous tests
Sometimes the disruption of the next test is executed while the stack
deletion is in progress and due to this the stack remains in state
delete in progress forever

Change-Id: I07f1e21d89174cfeaca77a93bfa8772a757b1afb
This commit is contained in:
Eduardo Olivares 2021-04-12 09:58:53 +02:00
parent e3e34bcdad
commit 99a7b0a219
1 changed files with 2 additions and 0 deletions

View File

@ -217,6 +217,8 @@ class HeatStackFixture(tobiko.SharedFixture):
def cleanup_stack(self):
self.delete_stack()
if self.stack:
self.wait_for_delete_complete()
def delete_stack(self, stack_id=None):
"""Deletes stack."""