2677655bda
001-adf30349-cli-refactor-get_prop.patch 002-60c7e778-xmlapi-add-set_prop.patch 003-5bad22e8-tests-Use-get-set_prop.patch 004-ee5f3eab-support-Add-SUPPORT_CONN_DEVICE_BOOT_ORDER.patch 005-7768eb17-cli-Add-check-if-device-boot-order-is-supported.patch 006-ecc0861c-tests-xmlparse-refactor-method-for-generating-out-file-path.patch 007-c9d070da-guest-Add-reorder_boot_order-method.patch 008-1b535940-tests-Add-test-case-for-reorder_boot_order-method.patch 009-b83a0a61-cli-Use-reorder_boot_order-for-setting-the-boot-order.patch 010-c896d19d-tests-cli-Add-boot.order-tests.patch 011-29f9f2ac-virt-xml-Add-no-define-argument.patch 012-c2bff509-tests-cli-Add-test-case-for-no-define-argument.patch 013-90b1a3ab-virt-xml-Add-support-for-starting-the-domain.patch 014-908b8e8d-tests-virt-xml-Add-test-cases-for-start-option.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=468
77 lines
3.1 KiB
Diff
77 lines
3.1 KiB
Diff
References: jsc#SLE-6262, fate#327048: KVM: Boot Configuration Override (virt-manager)
|
|
|
|
Subject: tests: cli: Add boot.order tests
|
|
From: Marc Hartmayer mhartmay@linux.ibm.com Tue Feb 26 10:56:40 2019 +0100
|
|
Date: Wed Mar 6 13:15:38 2019 -0500:
|
|
Git: c896d19d7645a2728b064d2026610178358220c5
|
|
|
|
Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com>
|
|
Reviewed-by: Boris Fiuczynski <fiuczy@linux.ibm.com>
|
|
|
|
diff --git a/tests/cli-test-xml/compare/virt-xml-edit-select-disk-bootorder.xml b/tests/cli-test-xml/compare/virt-xml-edit-select-disk-bootorder.xml
|
|
new file mode 100644
|
|
index 00000000..60114b99
|
|
--- /dev/null
|
|
+++ b/tests/cli-test-xml/compare/virt-xml-edit-select-disk-bootorder.xml
|
|
@@ -0,0 +1,19 @@
|
|
+ <total_iops_sec>50</total_iops_sec>
|
|
+ </iotune>
|
|
+ <address type="drive" controller="0" bus="0" target="0" unit="0"/>
|
|
++ <boot order="1"/>
|
|
+ </disk>
|
|
+ <disk type="file" device="disk">
|
|
+ <driver name="qemu" type="qcow2" cache="none"/>
|
|
+@@
|
|
+ </source>
|
|
+ <target dev="sda" bus="scsi"/>
|
|
+ <shareable/>
|
|
+- <boot order="1"/>
|
|
++ <boot order="2"/>
|
|
+ <address type="drive" controller="9" bus="0" target="0" unit="0"/>
|
|
+ </disk>
|
|
+ <controller type="scsi" index="0"/>
|
|
+
|
|
+Domain 'test-for-virtxml' defined successfully.
|
|
+Changes will take effect after the domain is fully powered off.
|
|
\ No newline at end of file
|
|
diff --git a/tests/cli-test-xml/compare/virt-xml-edit-select-disk-bootorder2.xml b/tests/cli-test-xml/compare/virt-xml-edit-select-disk-bootorder2.xml
|
|
new file mode 100644
|
|
index 00000000..0c35cd14
|
|
--- /dev/null
|
|
+++ b/tests/cli-test-xml/compare/virt-xml-edit-select-disk-bootorder2.xml
|
|
@@ -0,0 +1,18 @@
|
|
+ <os>
|
|
+ <type arch="i686">hvm</type>
|
|
+ <loader type="rom">/usr/lib/xen/boot/hvmloader</loader>
|
|
+- <boot dev="hd"/>
|
|
+ </os>
|
|
+ <features>
|
|
+ <acpi/>
|
|
+@@
|
|
+ <source file="/dev/default-pool/collidevol1.img"/>
|
|
+ <target dev="hda" bus="ide"/>
|
|
+ <address type="drive" controller="0" bus="0" target="0" unit="0"/>
|
|
++ <boot order="1"/>
|
|
+ </disk>
|
|
+ <controller type="ide" index="0"/>
|
|
+ <interface type="user">
|
|
+
|
|
+Domain 'test-collide' defined successfully.
|
|
+Changes will take effect after the domain is fully powered off.
|
|
\ No newline at end of file
|
|
diff --git a/tests/clitest.py b/tests/clitest.py
|
|
index a86c15cc..fff4b99f 100644
|
|
--- a/tests/clitest.py
|
|
+++ b/tests/clitest.py
|
|
@@ -965,6 +965,10 @@ c.add_compare("--edit ich6 --sound pcspk", "edit-select-sound-model", check_vers
|
|
c.add_compare("--edit target=hda --disk /dev/null", "edit-select-disk-target")
|
|
c.add_compare("--edit /tmp/foobar2 --disk shareable=off,readonly=on", "edit-select-disk-path")
|
|
c.add_compare("--edit mac=00:11:7f:33:44:55 --network target=nic55", "edit-select-network-mac")
|
|
+c.add_compare("--edit target=hda --disk boot_order=1", "edit-select-disk-bootorder")
|
|
+
|
|
+c = vixml.add_category("edit selection 2", "test-collide --print-diff --define")
|
|
+c.add_compare("--edit target=hda --disk boot_order=1", "edit-select-disk-bootorder2")
|
|
|
|
c = vixml.add_category("edit clear", "test-for-virtxml --print-diff --define")
|
|
c.add_invalid("--edit --memory 200,clearxml=yes") # clear isn't wired up for memory
|