mirror of
https://github.com/ceph/ceph
synced 2024-12-18 09:25:49 +00:00
mgr/dashboard: Extend RestController.bulk_set
test
Signed-off-by: Patrick Nawracay <pnawracay@suse.com>
This commit is contained in:
parent
d7de1fa067
commit
cce9a0f229
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user