From 053200096c6c5999992042327da5f829ff588917 Mon Sep 17 00:00:00 2001 From: Liam Young Date: Wed, 8 Mar 2023 13:26:14 +0000 Subject: [PATCH] Warning and NotImplementedError if application_name missing --- zaza/openstack/charm_tests/tempest/tests.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/zaza/openstack/charm_tests/tempest/tests.py b/zaza/openstack/charm_tests/tempest/tests.py index f2fab68..71c280a 100644 --- a/zaza/openstack/charm_tests/tempest/tests.py +++ b/zaza/openstack/charm_tests/tempest/tests.py @@ -144,7 +144,9 @@ class TempestTestWithKeystoneMinimal(TempestTestBase): class TempestTestScaleK8SBase(TempestTestBase): """Tempest test class to validate an OpenStack setup after scaling.""" - application_name = None + @property + def application_name(self): + raise NotImplementedError() @property def expected_statuses(self): @@ -160,6 +162,9 @@ class TempestTestScaleK8SBase(TempestTestBase): Due to Bug: #2009503 the old units remain in the model but are marked as dying """ + logging.warning( + "Waiting for dying units to work around Bug #2009503. If this is " + "fixed please update this test") app_status = zaza.model.get_status()['applications'][ application_name] dead_units = [ustatus