From 91fe2f07997d292e42005001e07dbf1dfb94d0c8 Mon Sep 17 00:00:00 2001 From: Volker Theile Date: Tue, 26 Mar 2019 10:06:42 +0100 Subject: [PATCH] mgr/dashboard/qa: Increase timeout for test_disable (tasks.mgr.dashboard.test_mgr_module.MgrModuleTelemetryTest) Fixes: https://tracker.ceph.com/issues/38820 Signed-off-by: Volker Theile --- qa/tasks/mgr/dashboard/test_mgr_module.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/qa/tasks/mgr/dashboard/test_mgr_module.py b/qa/tasks/mgr/dashboard/test_mgr_module.py index 9e7d760189ca5..af0036904a30a 100644 --- a/qa/tasks/mgr/dashboard/test_mgr_module.py +++ b/qa/tasks/mgr/dashboard/test_mgr_module.py @@ -10,6 +10,8 @@ logger = logging.getLogger(__name__) class MgrModuleTestCase(DashboardTestCase): + MGRS_REQUIRED = 1 + @classmethod def tearDownClass(cls): cls._ceph_cmd(['mgr', 'module', 'disable', 'telemetry']) @@ -30,7 +32,7 @@ class MgrModuleTestCase(DashboardTestCase): pass return False - self.wait_until_true(_check_connection, timeout=20, period=2) + self.wait_until_true(_check_connection, timeout=30) class MgrModuleTest(MgrModuleTestCase): @@ -171,6 +173,8 @@ class MgrModuleTelemetryTest(MgrModuleTestCase): self.assertTrue(module_info['enabled']) def test_disable(self): + # Enable the 'telemetry' module (all CephMgr modules are restarted) + # and wait until the Dashboard REST API is accessible. self._ceph_cmd(['mgr', 'module', 'enable', 'telemetry']) self.wait_until_rest_api_accessible() try: -- 2.39.5