Automate generation of volume transfer api-ref samples
This patch adds the following tests: 1) Volume transfer delete Partially-Implements: blueprint generating-sample-files Signed-off-by: Desire Barine <desirebarine16@gmail.com> Change-Id: Ib6499d4c3dec6d00154bb78fb3843bbad50db2b7
This commit is contained in:
parent
d7ae9610d7
commit
221af98ffc
@ -70,3 +70,9 @@ class VolumeTransferSampleJsonTest(test_base.VolumesSampleBase):
|
||||
response = self._do_get('os-volume-transfer/detail')
|
||||
self._verify_response('volume-transfers-list-detailed-response',
|
||||
{}, response, 200)
|
||||
|
||||
def test_transfer_delete(self):
|
||||
|
||||
res = jsonutils.loads(self.response.content)['transfer']
|
||||
response = self._do_delete('os-volume-transfer/%s' % res['id'])
|
||||
self.assertEqual(response.status_code, 202)
|
||||
|
Loading…
Reference in New Issue
Block a user