]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: fix API tests
authorAlfonso Martínez <almartin@redhat.com>
Fri, 24 Apr 2020 08:53:24 +0000 (10:53 +0200)
committerLaura Paduano <lpaduano@suse.com>
Tue, 28 Apr 2020 07:21:59 +0000 (09:21 +0200)
* test_perf_counters_mgr_get
* test_selftest_cluster_log

Fixes: https://tracker.ceph.com/issues/45170
Fixes: https://tracker.ceph.com/issues/45246
Signed-off-by: Alfonso Martínez <almartin@redhat.com>
(cherry picked from commit 0ac296430f45ddf937b6c4c25607f0b757dcf447)

qa/tasks/mgr/dashboard/test_perf_counters.py

index c3191dc5e941642552f8b4d9cac46c6b28e70f78..c01368bce8db15556db9680751b98e3a507e5b76 100644 (file)
@@ -39,7 +39,7 @@ class PerfCountersControllerTest(DashboardTestCase):
         self._validate_perf(mon, 'mon', data, allow_empty=False)
 
     def test_perf_counters_mgr_get(self):
-        mgr = self.mgr_cluster.mgr_ids[0]
+        mgr = list(self.mgr_cluster.mgr_ids)[0]
         data = self._get('/api/perf_counters/mgr/{}'.format(mgr))
         self.assertStatus(200)
         self._validate_perf(mgr, 'mgr', data, allow_empty=False)