]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: Fix backend tests for newer CherryPy versions 20778/head
authorPatrick Nawracay <pnawracay@suse.com>
Wed, 7 Mar 2018 12:45:52 +0000 (13:45 +0100)
committerPatrick Nawracay <pnawracay@suse.com>
Wed, 7 Mar 2018 12:45:52 +0000 (13:45 +0100)
The backend test run by `run-backend-api-tests.sh` fails for CherryPy
versions 13.x and 14.x.

Signed-off-by: Patrick Nawracay <pnawracay@suse.com>
qa/tasks/mgr/dashboard_v2/helper.py

index 51af2f6736aa8a579af4fb2058abae8e6e4bce6c..f43970f110c4fb938897d3f5d6a0c0ccd24ac46d 100644 (file)
@@ -36,7 +36,7 @@ class DashboardTestCase(MgrTestCase):
         super(DashboardTestCase, cls).setUpClass()
         cls._assign_ports("dashboard_v2", "server_port")
         cls._load_module("dashboard_v2")
-        cls.base_uri = cls._get_uri("dashboard_v2")
+        cls.base_uri = cls._get_uri("dashboard_v2").rstrip('/')
 
         if cls.CEPHFS:
             cls.mds_cluster.clear_firewall()