From 275a315354c756c0b9e637bb4f18dc20db26cdfd Mon Sep 17 00:00:00 2001 From: Ricardo Dias Date: Mon, 29 Jan 2018 09:22:57 +0000 Subject: [PATCH] mgr/dashboard_v2: removed auth handler form test_auth.py setup The auth setup is already being set in module.py Signed-off-by: Ricardo Dias --- src/pybind/mgr/dashboard_v2/tests/test_auth.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/pybind/mgr/dashboard_v2/tests/test_auth.py b/src/pybind/mgr/dashboard_v2/tests/test_auth.py index 1e593b9ffd3..e55d234e20c 100644 --- a/src/pybind/mgr/dashboard_v2/tests/test_auth.py +++ b/src/pybind/mgr/dashboard_v2/tests/test_auth.py @@ -22,9 +22,6 @@ class Ping(object): class AuthTest(ControllerTestCase): @classmethod def setup_test(cls): - cherrypy.tools.authenticate = cherrypy.Tool('before_handler', - Auth.check_auth) - cherrypy.tree.mount(Ping(), "/api/test", config={'/': {'tools.authenticate.on': True}}) cls._mgr_module.set_localized_config('session-expire', '2') -- 2.39.5