]> xenbits.xensource.com Git - libvirt.git/commit
qemuhotplugtest: Verify domain XML on UPDATE
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 21 Apr 2023 07:56:20 +0000 (09:56 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 25 Apr 2023 06:46:27 +0000 (08:46 +0200)
commit0eebdce995a16cafc1d014a1907b165a5e364d65
treef89d87ae5d2ce8d0cc3dc5a8d6e04aa0116ad303
parent11793a53111c586c7fbd66cb08d8c8b3b9b9dd41
qemuhotplugtest: Verify domain XML on UPDATE

Just like we check the resulting domain XML after ATTACH and
DETACH, we should do the same after UPDATE action. This is as
simple as calling testQemuHotplugCheckResult() and providing
missing XMLs. For those test cases where no change is done, we
can just make the expected XML a symlink to the input XML.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Kristina Hanicova <khanicov@redhat.com>
tests/qemuhotplugtest.c
tests/qemuhotplugtestdomains/qemuhotplug-disk-cdrom+disk-cdrom-nochange.xml [new symlink]
tests/qemuhotplugtestdomains/qemuhotplug-disk-cdrom.xml
tests/qemuhotplugtestdomains/qemuhotplug-graphics-spice+graphics-spice-nochange.xml [new symlink]
tests/qemuhotplugtestdomains/qemuhotplug-graphics-spice-listen-network+graphics-spice-listen-network-password.xml [new file with mode: 0644]
tests/qemuhotplugtestdomains/qemuhotplug-graphics-spice-timeout+graphics-spice-timeout-nochange.xml [new symlink]
tests/qemuhotplugtestdomains/qemuhotplug-graphics-spice-timeout+graphics-spice-timeout-password.xml [new file with mode: 0644]
tests/qemuhotplugtestdomains/qemuhotplug-graphics-spice-timeout.xml
tests/qemuhotplugtestdomains/qemuhotplug-graphics-spice.xml