From 7783e38f668758101374d3151a762cfcbd8e3cb8 Mon Sep 17 00:00:00 2001 From: David Ames Date: Thu, 7 May 2020 22:17:31 +0000 Subject: [PATCH] Handle race in policyd tests --- zaza/openstack/charm_tests/policyd/tests.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zaza/openstack/charm_tests/policyd/tests.py b/zaza/openstack/charm_tests/policyd/tests.py index 2845781..88d6699 100644 --- a/zaza/openstack/charm_tests/policyd/tests.py +++ b/zaza/openstack/charm_tests/policyd/tests.py @@ -430,6 +430,8 @@ class BasePolicydSpecialization(PolicydTest, # now do the policyd override. logging.info("Doing policyd override with: {}".format(self._rule)) self._set_policy_with(self._rule) + zaza_model.block_until_wl_status_info_starts_with( + self.application_name, "PO:") zaza_model.block_until_all_units_idle() # now make sure the operation fails