From 8b7b7bdc3e6495fad7a16fc64e88b3103711080f Mon Sep 17 00:00:00 2001 From: catborise Date: Sat, 31 Oct 2026 22:10:37 +0300 Subject: [PATCH] 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. --- instances/tests/test_live_lvm.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/instances/tests/test_live_lvm.py b/instances/tests/test_live_lvm.py index 50f54c8c..dc6bb203 100644 --- a/instances/tests/test_live_lvm.py +++ b/instances/tests/test_live_lvm.py @@ -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())