From: Nizamudeen A Date: Tue, 3 Feb 2026 08:03:08 +0000 (+0530) Subject: qa/tests: wait for module to be available for connection X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F67177%2Fhead;p=ceph.git qa/tests: wait for module to be available for connection Signed-off-by: Nizamudeen A --- diff --git a/qa/tasks/mgr/dashboard/test_feedback.py b/qa/tasks/mgr/dashboard/test_feedback.py index 0ec5ac318806..7a72f5211978 100644 --- a/qa/tasks/mgr/dashboard/test_feedback.py +++ b/qa/tasks/mgr/dashboard/test_feedback.py @@ -1,15 +1,20 @@ import time -from .helper import DashboardTestCase +from .helper import DashboardTestCase, MgrModuleTestCase -class FeedbackTest(DashboardTestCase): +class FeedbackTest(DashboardTestCase, MgrModuleTestCase): @classmethod def setUpClass(cls): super().setUpClass() - cls._ceph_cmd(['mgr', 'module', 'enable', 'feedback']) - time.sleep(10) + cls._ceph_cmd(['mgr', 'module', 'enable', 'feedback'], wait=3) + cls._get( + '/api/mgr/module', + retries=2, + wait_func=lambda: # pylint: disable=unnecessary-lambda + cls.wait_until_rest_api_accessible() + ) def test_create_api_key(self): self._post('/api/feedback/api_key', {'api_key': 'testapikey'}, version='0.1')