mirror of
https://github.com/retspen/webvirtcloud
synced 2026-11-11 12:46:49 +00:00
test(instances): make the live libvirt suite runnable on real hosts
- Pick the test VM by name; .first() could select any VM already on the compute, and tearDownClass deletes the chosen VM's disks. - Delete the test volume when setUpClass fails after creating it. - test-vm.xml: no hard-coded emulator, machine alias q35 instead of pc-q35-5.1, so it defines on RHEL qemu-kvm hosts too. - Follow current behavior: power actions are POST-only, the create form needs add_cdrom/add_input and VNC, cloning needs change permission on the source VM. - README: the tests read TEST_LIBVIRT_HOST/TYPE/LOGIN/PASSWORD; WEBVIRTCLOUD_TEST_LIBVIRT_URI never existed.
This commit is contained in:
parent
964b58778d
commit
88ec3c5f6a
3 changed files with 25 additions and 15 deletions
|
|
@ -5,7 +5,7 @@
|
|||
<currentMemory unit="KiB">131072</currentMemory>
|
||||
<vcpu placement="static">1</vcpu>
|
||||
<os>
|
||||
<type arch="x86_64" machine="pc-q35-5.1">hvm</type>
|
||||
<type arch="x86_64" machine="q35">hvm</type>
|
||||
<boot dev="hd" />
|
||||
<boot dev="cdrom" />
|
||||
<bootmenu enable="yes" />
|
||||
|
|
@ -20,7 +20,6 @@
|
|||
<on_reboot>restart</on_reboot>
|
||||
<on_crash>restart</on_crash>
|
||||
<devices>
|
||||
<emulator>/usr/bin/qemu-system-x86_64</emulator>
|
||||
<disk type="file" device="disk">
|
||||
<driver name="qemu" type="qcow2" cache="directsync" />
|
||||
<source file="/var/lib/libvirt/images/test-volume.qcow2" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue