From b324aaaa48ffd001c3d52be46161570a669770a5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Stephan=20M=C3=BCller?= Date: Mon, 3 Dec 2018 15:20:03 +0100 Subject: [PATCH] mgr/dashboard: Fix 'resource' typo MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stephan Müller --- src/pybind/mgr/dashboard/controllers/__init__.py | 2 +- src/pybind/mgr/dashboard/tests/test_controllers.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pybind/mgr/dashboard/controllers/__init__.py b/src/pybind/mgr/dashboard/controllers/__init__.py index ce2b40a4452..ea978126687 100644 --- a/src/pybind/mgr/dashboard/controllers/__init__.py +++ b/src/pybind/mgr/dashboard/controllers/__init__.py @@ -602,7 +602,7 @@ class RESTController(BaseController): # should be overridden by subclasses. # to specify a composite id (two parameters) use '/'. e.g., "param1/param2". # If subclasses don't override this property we try to infer the structure - # of the resourse ID. + # of the resource ID. RESOURCE_ID = None _permission_map = { diff --git a/src/pybind/mgr/dashboard/tests/test_controllers.py b/src/pybind/mgr/dashboard/tests/test_controllers.py index 333f7a37742..c6fcb25b0d0 100644 --- a/src/pybind/mgr/dashboard/tests/test_controllers.py +++ b/src/pybind/mgr/dashboard/tests/test_controllers.py @@ -175,7 +175,7 @@ class ControllersTest(ControllerTestCase): self.assertStatus(200) self.assertJsonBody({'key': '300', 'data': 30}) - def test_rest_resourse(self): + def test_rest_resource(self): self._get('/test/api/rtest/{}/{}/{}/rmethod?opt=4'.format(300, 2, 3)) self.assertStatus(200) self.assertJsonBody({'key': '300', 'skey': '2', 'ekey': '3', -- 2.39.5