]> git.apps.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>
Tue, 4 May 2021 16:16:08 +0000 (11:16 -0500)
Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit a2c9333a0b5ed061839aa798f8293c5fcdc6e7f5)

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(