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:
parent
9521c79733
commit
8b7b7bdc3e
1 changed files with 2 additions and 1 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue