From cce9a0f229f69981c3e0bb354371b238f9498563 Mon Sep 17 00:00:00 2001 From: Patrick Nawracay Date: Wed, 30 May 2018 15:59:24 +0200 Subject: [PATCH] mgr/dashboard: Extend `RestController.bulk_set` test Signed-off-by: Patrick Nawracay --- src/pybind/mgr/dashboard/tests/test_controllers.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/pybind/mgr/dashboard/tests/test_controllers.py b/src/pybind/mgr/dashboard/tests/test_controllers.py index 49593e48a88..8981d3b611a 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) -- 2.39.5