From 005b2d5dc2b63a5cc4377364a868ffd77ee7b2b8 Mon Sep 17 00:00:00 2001 From: Alexandru Date: Mon, 17 May 2021 10:22:59 +0300 Subject: [PATCH] Wait for stx-openstack applied before executing the reapply in test_host_management.py Signed-off-by: Alexandru Change-Id: Id9e25dec67a97538d4eebf3886ef2b0a2c3a3ec0 --- .../testcases/sanity/sanity_openstack/test_host_management.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/automated-pytest-suite/testcases/sanity/sanity_openstack/test_host_management.py b/automated-pytest-suite/testcases/sanity/sanity_openstack/test_host_management.py index 8b38d4b..5a0ace2 100755 --- a/automated-pytest-suite/testcases/sanity/sanity_openstack/test_host_management.py +++ b/automated-pytest-suite/testcases/sanity/sanity_openstack/test_host_management.py @@ -200,6 +200,8 @@ def test_reboot_active_controller(no_simplex): @mark.robotsanity def test_reapply_openstack(): + container_helper.wait_for_apps_status(apps="stx-openstack", status=AppStatus.APPLIED, + timeout=600, check_interval=60) container_helper.remove_app(app_name="stx-openstack", check_first=True) alarm_id = EventLogID.CONFIG_OUT_OF_DATE if system_helper.wait_for_alarm(alarm_id=alarm_id,