tests: Add title-and-description

We have a few cases in qemuxmlconftest that cover the ability
to set <title> and <description> for a guest as a side effect.

Introduce an explicit case for the functionality in
genericxml2xmltest, as it's not specific to the QEMU driver.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
Andrea Bolognani 2024-01-26 11:31:26 +01:00
parent dab99eedcd
commit d268f1b293
2 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,25 @@
<domain type='qemu'>
<name>guest</name>
<uuid>c7a5fdbd-edaf-9455-926a-d65c16db1809</uuid>
<title>this is the guest title</title>
<description>
this is the
guest description
</description>
<memory unit='KiB'>219100</memory>
<currentMemory unit='KiB'>219100</currentMemory>
<vcpu placement='static'>1</vcpu>
<os>
<type arch='x86_64' machine='pc'>hvm</type>
<boot dev='hd'/>
</os>
<clock offset='utc'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>destroy</on_crash>
<devices>
<emulator>/usr/bin/qemu-system-x86_64</emulator>
<controller type='usb' index='0' model='none'/>
<memballoon model='none'/>
</devices>
</domain>

View File

@ -178,6 +178,8 @@ mymain(void)
DO_TEST_FAIL_ACTIVE("name-slash-fail");
DO_TEST("title-and-description");
DO_TEST("perf");
DO_TEST("vcpus-individual");