1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-08 19:26:48 +00:00

test(instances): the live LVM test confirms erasing the device it pools

The New pool form asks for the erase confirmation on a logical pool since
the storage pages were redone; the live test's pool request lacked it, so
the pool was never created and both LVM tests failed in setUp.
This commit is contained in:
catborise 2026-10-31 22:10:37 +03:00
parent 9521c79733
commit 8b7b7bdc3e

View file

@ -86,7 +86,8 @@ class LiveLvmTestCase(TestCase):
except libvirt.libvirtError:
self.client.post(
reverse("storages", args=[self.compute.id]),
{"create": "", "name": POOL, "stg_type": "logical", "source": os.environ["TEST_LIBVIRT_LVM_DEVICE"]},
{"create": "", "name": POOL, "stg_type": "logical", "source": os.environ["TEST_LIBVIRT_LVM_DEVICE"],
"erase_device": "on"},
)
pool = self.conn.storagePoolLookupByName(POOL)
self.assertTrue(pool.isActive())