mgr/dashboard: Extend RestController.bulk_set test

Signed-off-by: Patrick Nawracay <pnawracay@suse.com>
This commit is contained in:
Patrick Nawracay 2018-05-30 15:59:24 +02:00
parent d7de1fa067
commit cce9a0f229

View 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)