mirror of
https://github.com/ceph/ceph
synced 2025-01-11 05:29:51 +00:00
a97991d480
Signed-off-by: Ricardo Marques <rimarques@suse.com>
25 lines
814 B
Python
25 lines
814 B
Python
from __future__ import absolute_import
|
|
|
|
from .helper import DashboardTestCase, authenticate
|
|
|
|
|
|
class SummaryTest(DashboardTestCase):
|
|
CEPHFS = True
|
|
|
|
@authenticate
|
|
def test_summary(self):
|
|
data = self._get("/api/summary")
|
|
self.assertStatus(200)
|
|
|
|
self.assertIn('health_status', data)
|
|
self.assertIn('mgr_id', data)
|
|
self.assertIn('have_mon_connection', data)
|
|
self.assertIn('rbd_mirroring', data)
|
|
self.assertIn('executing_tasks', data)
|
|
self.assertIn('finished_tasks', data)
|
|
self.assertIn('version', data)
|
|
self.assertIsNotNone(data['health_status'])
|
|
self.assertIsNotNone(data['mgr_id'])
|
|
self.assertIsNotNone(data['have_mon_connection'])
|
|
self.assertEqual(data['rbd_mirroring'], {'errors': 0, 'warnings': 0})
|