From 4fdd4f9fec64dbc07c137abd234f92d4254a73b2 Mon Sep 17 00:00:00 2001 From: Michael Hudson-Doyle Date: Thu, 17 Mar 2022 13:34:55 +1300 Subject: [PATCH] make test_v2_multi_disk_multi_boot api test more correct This calls add_boot_partition on disks that are filled by pre-existing partitions. That should not work, and does not in a branch I am working on. --- subiquity/tests/api/test_api.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/subiquity/tests/api/test_api.py b/subiquity/tests/api/test_api.py index 83fcfa9e..13b853a8 100755 --- a/subiquity/tests/api/test_api.py +++ b/subiquity/tests/api/test_api.py @@ -451,6 +451,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',