]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: Extend `RestController.bulk_set` test
authorPatrick Nawracay <pnawracay@suse.com>
Wed, 30 May 2018 13:59:24 +0000 (15:59 +0200)
committerPatrick Nawracay <pnawracay@suse.com>
Fri, 15 Jun 2018 08:26:30 +0000 (10:26 +0200)
Signed-off-by: Patrick Nawracay <pnawracay@suse.com>
src/pybind/mgr/dashboard/tests/test_controllers.py

index 49593e48a88b7e427f5ebfc04c4f5603becefacf..8981d3b611a8495991067c59878ad8900450ab06 100644 (file)
@@ -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)