]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/dashboard: increase API test coverage in API controllers
authorAashish Sharma <aashishsharma@localhost.localdomain>
Wed, 15 Jul 2020 14:33:50 +0000 (20:03 +0530)
committerAashish Sharma <aashishsharma@localhost.localdomain>
Wed, 15 Jul 2020 14:33:50 +0000 (20:03 +0530)
Added test cases for the missing endpoints

Fixes: https://tracker.ceph.com/issues/45901
Signed-off-by: Aashish Sharma <aasharma@redhat.com>
qa/tasks/mgr/dashboard/test_cephfs.py
qa/tasks/mgr/dashboard/test_mgr_module.py
qa/tasks/mgr/dashboard/test_pool.py

index 3418ccfda4dc115fb4f2d3e687de2091010a8492..5ee39457aa10815ac3238b5532c5fb7e3603003b 100644 (file)
@@ -154,7 +154,6 @@ class CephfsTest(DashboardTestCase):
             'max_files': int
         }))
 
-
     def test_cephfs_tabs(self):
         fs_id = self.get_fs_id()
         data = self._get("/ui-api/cephfs/{}/tabs".format(fs_id))
index 407871b9bade8ce6e041810121e19b7f32e21052..266ab2d343f5a10c849309cd3e86d3de80cc53dc 100644 (file)
@@ -47,7 +47,6 @@ class MgrModuleTest(MgrModuleTestCase):
         'see_also': JList(str)
     })
 
-
     def test_list_disabled_module(self):
         self._ceph_cmd(['mgr', 'module', 'disable', 'iostat'])
         self.wait_until_rest_api_accessible()
index 532cc23f0019a8d379cc476a5455208bcb7a0619..c8d8195f6f6839a1b6bf68a5af40ea77eb491e97 100644 (file)
@@ -157,10 +157,10 @@ class PoolTest(DashboardTestCase):
     def test_delete_access_permissions(self):
         self._delete('/api/pool/ddd')
         self.assertStatus(403)
-        
+
     def test_pool_configuration(self):
         pool_name = 'device_health_metrics'
-        data= self._get('/api/pool/{}/configuration'.format(pool_name))
+        data = self._get('/api/pool/{}/configuration'.format(pool_name))
         self.assertStatus(200)
         self.assertSchema(data, JList(JObj({
              'name': str,