]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/mgr/test_dashboard: skip test_standby if mgr_standby_modules=false
authorSage Weil <sage@newdream.net>
Tue, 13 Apr 2021 22:47:05 +0000 (18:47 -0400)
committerSage Weil <sage@newdream.net>
Fri, 16 Apr 2021 20:00:31 +0000 (16:00 -0400)
Signed-off-by: Sage Weil <sage@newdream.net>
qa/tasks/mgr/test_dashboard.py

index b30175f4f6f44583f5cc745ebf00b40fe4fd3315..c3459ec024dd553638f17f02e4ba72b9164b76eb 100644 (file)
@@ -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(