From 4298be05d261f091ef9f0d90147395686112c2ee Mon Sep 17 00:00:00 2001 From: Frode Nordahl Date: Wed, 13 Nov 2019 14:22:33 +0100 Subject: [PATCH] policyd: await agent status executing after config change The current implementation may miss waiting for config change to actually happen as it in some circumstances jumps to waiting for a idle state prior to the model executing anything. Add a wait for agent status `executing` immediatelly after config change to avoid this. Fixes #123 --- zaza/openstack/charm_tests/policyd/tests.py | 1 + 1 file changed, 1 insertion(+) diff --git a/zaza/openstack/charm_tests/policyd/tests.py b/zaza/openstack/charm_tests/policyd/tests.py index c359695..8b96d03 100644 --- a/zaza/openstack/charm_tests/policyd/tests.py +++ b/zaza/openstack/charm_tests/policyd/tests.py @@ -86,6 +86,7 @@ class PolicydTest(object): config = {"use-policyd-override": s} logging.info("Setting config to {}".format(config)) zaza_model.set_application_config(self.application_name, config) + zaza_model.wait_for_agent_status() def _make_zip_file_from(self, name, files): """Make a zip file from a dictionary of filename: string.