From: Aashish Sharma Date: Fri, 17 Jul 2020 10:00:33 +0000 (+0530) Subject: mgr/dashboard: increase API test coverage in API controllers X-Git-Tag: v16.1.0~1650^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e1594d1018060267c2fca61d92eca6cb4ab64ae4;p=ceph.git mgr/dashboard: increase API test coverage in API controllers Added test cases for the missing endpoints Fixes: https://tracker.ceph.com/issues/45901 Signed-off-by: Aashish Sharma --- diff --git a/src/pybind/mgr/dashboard/module.py b/src/pybind/mgr/dashboard/module.py index 669049fc233c..c0c2d8cde431 100644 --- a/src/pybind/mgr/dashboard/module.py +++ b/src/pybind/mgr/dashboard/module.py @@ -296,6 +296,7 @@ class Module(MgrModule, CherryPyConfig): data_suffix=True) __cov.start() cherrypy.engine.subscribe('after_request', __cov.save) + cherrypy.engine.subscribe('stop', __cov.stop) AuthManager.initialize() load_sso_db() @@ -340,7 +341,6 @@ class Module(MgrModule, CherryPyConfig): self.shutdown_event.clear() NotificationQueue.stop() cherrypy.engine.stop() - cherrypy.engine.subscribe('stop', __cov.stop) logger.info('Engine stopped') def shutdown(self):