Merge pull request #1231 from mwhudson/fix-api-test

make test_v2_multi_disk_multi_boot api test more correct
This commit is contained in:
Dan Bungert 2022-03-17 15:56:52 -06:00 committed by GitHub
commit 3256172f0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -457,6 +457,8 @@ class TestAdd(TestAPI):
resp = await inst.get('/storage/v2')
vda = first(resp['disks'], 'id', 'disk-vda')
vdb = first(resp['disks'], 'id', 'disk-vdb')
await inst.post('/storage/v2/reformat_disk', disk_id=vda['id'])
await inst.post('/storage/v2/reformat_disk', disk_id=vdb['id'])
await inst.post('/storage/v2/add_boot_partition',
disk_id=vda['id'])
await inst.post('/storage/v2/add_boot_partition',