Sync time on cfg01 node before tempest
- sync time again on all the nodes including cfg01
- check if the services 'maas-rackd' and 'maas-regiond' are
present on the node. if yes - disable the services while
time is synchronized
- execute salt_actions.sync_time() also before the tempest
is started
- remove the class override_ntp_virtual because it disables
the ntp client on cfg01.
Closes-Bug: #PROD-30114
Change-Id: Ibb731ae14f573a3d7471da2cbe9f55754d79c4ff
diff --git a/tcp_tests/tests/system/test_3rdparty_suites.py b/tcp_tests/tests/system/test_3rdparty_suites.py
index 00b915d..188d21b 100644
--- a/tcp_tests/tests/system/test_3rdparty_suites.py
+++ b/tcp_tests/tests/system/test_3rdparty_suites.py
@@ -32,13 +32,16 @@
@pytest.mark.grab_versions
@pytest.mark.parametrize("_", [settings.ENV_NAME])
@pytest.mark.run_tempest
- def test_run_tempest(self, tempest_actions, show_step, _):
+ def test_run_tempest(self, tempest_actions, show_step, salt_actions, _):
"""Runner for Openstack tempest tests
Scenario:
- 1. Run tempest
+ 1. Sync time on the environment nodes
+ 2. Run tempest
"""
show_step(1)
+ salt_actions.sync_time()
+ show_step(2)
tempest_actions.prepare_and_run_tempest()
@pytest.mark.grab_versions