]> git.proxmox.com Git - ceph.git/blobdiff - ceph/qa/tasks/mgr/test_dashboard.py
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / qa / tasks / mgr / test_dashboard.py
index b0cf200d61be46ef312e3ca9751759e7d9aac703..783c492d3f270eefa08412d60a8186d6a98d47f7 100644 (file)
@@ -49,11 +49,18 @@ class TestDashboard(MgrTestCase):
         self.assertNotEqual(original_uri, failed_over_uri)
 
         # The original active daemon should have come back up as a standby
-        # and be doing redirects to the new active daemon
+        # and be doing redirects to the new active daemon.
         r = requests.get(original_uri, allow_redirects=False, verify=False)
         self.assertEqual(r.status_code, 303)
         self.assertEqual(r.headers['Location'], failed_over_uri)
 
+        # Ensure that every URL redirects to the active daemon.
+        r = requests.get("{}/runtime.js".format(original_uri),
+                         allow_redirects=False,
+                         verify=False)
+        self.assertEqual(r.status_code, 303)
+        self.assertEqual(r.headers['Location'], failed_over_uri)
+
     def test_standby_disable_redirect(self):
         self.mgr_cluster.mon_manager.raw_cluster_cmd("config", "set", "mgr",
                                                      "mgr/dashboard/standby_behaviour",