From c896d19d7645a2728b064d2026610178358220c5 Mon Sep 17 00:00:00 2001 From: Marc Hartmayer Date: Tue, 26 Feb 2019 10:56:40 +0100 Subject: [PATCH] tests: cli: Add boot.order tests Signed-off-by: Marc Hartmayer Reviewed-by: Boris Fiuczynski --- .../virt-xml-edit-select-disk-bootorder.xml | 19 +++++++++++++++++++ .../virt-xml-edit-select-disk-bootorder2.xml | 18 ++++++++++++++++++ tests/clitest.py | 4 ++++ 3 files changed, 41 insertions(+) create mode 100644 tests/cli-test-xml/compare/virt-xml-edit-select-disk-bootorder.xml create mode 100644 tests/cli-test-xml/compare/virt-xml-edit-select-disk-bootorder2.xml 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 @@ + 50 + +
++ + + + +@@ + + + +- ++ +
+ + + +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 @@ + + hvm + /usr/lib/xen/boot/hvmloader +- + + + +@@ + + +
++ + + + + +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