From: Stephan Müller Date: Mon, 3 Dec 2018 14:20:03 +0000 (+0100) Subject: mgr/dashboard: Fix 'resource' typo X-Git-Tag: v14.1.0~732^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b324aaaa48ffd001c3d52be46161570a669770a5;p=ceph.git mgr/dashboard: Fix 'resource' typo Signed-off-by: Stephan Müller --- diff --git a/src/pybind/mgr/dashboard/controllers/__init__.py b/src/pybind/mgr/dashboard/controllers/__init__.py index ce2b40a44521..ea9781266872 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 333f7a377429..c6fcb25b0d0f 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',