From a2c9333a0b5ed061839aa798f8293c5fcdc6e7f5 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 13 Apr 2021 18:47:05 -0400 Subject: [PATCH] qa/tasks/mgr/test_dashboard: skip test_standby if mgr_standby_modules=false Signed-off-by: Sage Weil --- qa/tasks/mgr/test_dashboard.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/qa/tasks/mgr/test_dashboard.py b/qa/tasks/mgr/test_dashboard.py index b30175f4f6f..c3459ec024d 100644 --- a/qa/tasks/mgr/test_dashboard.py +++ b/qa/tasks/mgr/test_dashboard.py @@ -39,6 +39,12 @@ class TestDashboard(MgrTestCase): self.wait_until_true(_check_connection, timeout=30) def test_standby(self): + # skip this test if mgr_standby_modules=false + if self.mgr_cluster.mon_manager.raw_cluster_cmd( + "config", "get", "mgr", "mgr_standby_modules").strip() == "false": + log.info("Skipping test_standby since mgr_standby_modules=false") + return + original_active_id = self.mgr_cluster.get_active_id() original_uri = self._get_uri("dashboard") log.info("Originally running manager '{}' at {}".format( -- 2.39.5