From: Alfonso Martínez Date: Fri, 24 Apr 2020 08:53:24 +0000 (+0200) Subject: mgr/dashboard: fix API tests X-Git-Tag: v16.1.0~2494^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F34752%2Fhead;p=ceph.git mgr/dashboard: fix API tests * 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 --- diff --git a/qa/tasks/mgr/dashboard/test_perf_counters.py b/qa/tasks/mgr/dashboard/test_perf_counters.py index c3191dc5e94..c01368bce8d 100644 --- a/qa/tasks/mgr/dashboard/test_perf_counters.py +++ b/qa/tasks/mgr/dashboard/test_perf_counters.py @@ -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)