From: Patrick Nawracay Date: Wed, 30 May 2018 13:59:24 +0000 (+0200) Subject: mgr/dashboard: Extend `RestController.bulk_set` test X-Git-Tag: v14.0.1~1100^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=cce9a0f229f69981c3e0bb354371b238f9498563;p=ceph.git mgr/dashboard: Extend `RestController.bulk_set` test Signed-off-by: Patrick Nawracay --- diff --git a/src/pybind/mgr/dashboard/tests/test_controllers.py b/src/pybind/mgr/dashboard/tests/test_controllers.py index 49593e48a88b..8981d3b611a8 100644 --- a/src/pybind/mgr/dashboard/tests/test_controllers.py +++ b/src/pybind/mgr/dashboard/tests/test_controllers.py @@ -157,6 +157,15 @@ class ControllersTest(ControllerTestCase): self.assertStatus(200) self.assertJsonBody({'key': '300', 'data1': 20, 'data2': True}) + self._put('/test/api/rtest/{}'.format(400), + {'data1': 20, 'data2': ['one', 'two', 'three']}) + self.assertStatus(200) + self.assertJsonBody({ + 'key': '400', + 'data1': 20, + 'data2': ['one', 'two', 'three'], + }) + def test_rest_bulk_delete(self): self._delete('/test/api/rtest/{}?opt=2'.format(300)) self.assertStatus(204)