From 99a7b0a219100a279210f4b5df9a557aba6502b0 Mon Sep 17 00:00:00 2001 From: Eduardo Olivares Date: Mon, 12 Apr 2021 09:58:53 +0200 Subject: [PATCH] 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 --- tobiko/openstack/heat/_stack.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tobiko/openstack/heat/_stack.py b/tobiko/openstack/heat/_stack.py index 945a77e9b..3fba9275b 100644 --- a/tobiko/openstack/heat/_stack.py +++ b/tobiko/openstack/heat/_stack.py @@ -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."""