libvirt/tests
Peter Krempa 482c52b177 qemu: domain: Fill in (i)SCSI backend nodename if it is not present in status XML
For upgrade reasons so that we can modify the used nodename we must
generate the old version for all status XMLs which don't have it stored
explicitly.

The change will be required as using the user-provided alias may result
in too-long nodenames which will be rejected by qemu.

Add code which fills in the appropriate old value and add test cases to
validate that it's added and also that existing nodenames are not
overwritten.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2020-09-15 15:20:23 +02:00
..
bhyveargv2xmldata
bhyvexml2argvdata bhyve: allow to specify host sound device 2020-08-25 08:42:16 +04:00
bhyvexml2xmloutdata bhyve: allow to specify host sound device 2020-08-25 08:42:16 +04:00
capabilityschemadata
commanddata tests: commandtest: Make 'test4' checking daemonization more reliable 2020-07-27 15:44:38 +02:00
cputestdata Prefer https: everywhere where possible 2020-09-01 21:58:46 +02:00
domainbackupxml2xmlin backup: Allow configuring incremental backup per-disk individually 2020-07-08 08:40:30 +02:00
domainbackupxml2xmlout backup: Allow configuring incremental backup per-disk individually 2020-07-08 08:40:30 +02:00
domaincapsdata qemucapabilitiesdata: Add test data for x86_64 for the qemu-5.2 dev cycle 2020-08-24 16:43:22 +02:00
domainconfdata
domainschemadata
fchostdata/fc_host
genericxml2xmlindata Add a check attribute on the mac address element 2020-07-23 16:11:39 +01:00
genericxml2xmloutdata
interfaceschemadata
libxlxml2domconfigdata Xen: Add writeFiltering option for PCI devices 2020-09-01 14:29:17 -06:00
lxcconf2xmldata
lxcxml2xmldata lxc: add possibility to define init uid/gid 2017-07-11 10:41:24 +02:00
lxcxml2xmloutdata
networkxml2confdata tests: Add tests for <lease/> to cover dnsmasq settings 2020-04-23 10:59:33 +02:00
networkxml2firewalldata network: wire up support for IPv6 NAT rules 2020-06-15 17:10:15 +01:00
networkxml2xmlin conf: add an attribute to turn on NAT for IPv6 virtual networks 2020-06-15 17:10:15 +01:00
networkxml2xmlout conf: add an attribute to turn on NAT for IPv6 virtual networks 2020-06-15 17:10:15 +01:00
networkxml2xmlupdatein network: validate DHCP ranges are completely within defined network 2015-06-02 12:40:07 -04:00
networkxml2xmlupdateout
nodedevmdevctldata nodedev: Add testing for 'mdevctl stop' 2020-06-19 10:39:55 +02:00
nodedevschemadata node_device: detect CSS devices 2020-09-15 09:06:15 +02:00
nssdata
nwfilterxml2firewalldata
nwfilterxml2xmlin
nwfilterxml2xmlout
qemuagentdata
qemublocktestdata qemu: block: Remove 'active-write' bitmap even if there are no bitmaps to merge 2020-07-21 09:52:59 +02:00
qemucapabilitiesdata qemucapabilitiesdata: Add test data for x86_64 for the qemu-5.2 dev cycle 2020-08-24 16:43:22 +02:00
qemucaps2xmloutdata
qemudomaincheckpointxml2xmlin
qemudomaincheckpointxml2xmlout
qemudomainsnapshotxml2xmlin
qemudomainsnapshotxml2xmlout
qemufirmwaredata
qemuhotplugtestcpus
qemuhotplugtestdevices qemu: add support for shmem-{plain, doorbell} role 2020-08-03 10:57:47 +02:00
qemuhotplugtestdomains qemu: add support for shmem-{plain, doorbell} role 2020-08-03 10:57:47 +02:00
qemumemlockdata
qemumigparamsdata
qemumonitorjsondata
qemustatusxml2xmldata qemu: domain: Fill in (i)SCSI backend nodename if it is not present in status XML 2020-09-15 15:20:23 +02:00
qemuvhostuserdata
qemuxml2argvdata qemuxml2argvtest: hostdev-scsi-virtio-scsi: Add hostdev with useralias 2020-09-15 15:20:23 +02:00
qemuxml2xmloutdata qemuxml2argvtest: hostdev-scsi-virtio-scsi: Add hostdev with useralias 2020-09-15 15:20:23 +02:00
secretxml2xmlin
securityselinuxhelperdata
securityselinuxlabeldata
storagepoolcapsschemadata
storagepoolschemadata
storagepoolxml2argvdata
storagepoolxml2xmlin conf: add control over COW for storage pool directories 2020-07-23 16:18:09 +01:00
storagepoolxml2xmlout conf: add control over COW for storage pool directories 2020-07-23 16:18:09 +01:00
storagevolschemadata
storagevolxml2argvdata
storagevolxml2xmlin
storagevolxml2xmlout
sysinfodata virsysinfo: Parse OEM strings 2020-06-10 14:00:38 +02:00
vboxsnapshotxmldata
vircaps2xmldata
vircgroupdata
virconfdata rpc: remove use of the term 'whitelist' from RPC code 2020-06-26 15:36:40 +01:00
virfilecachedata
virfiledata
virhostcpudata hostcpu: Implement virHostCPUGetSignature for s390 2020-05-25 16:09:58 +02:00
virjsondata
virmacmaptestdata
virnetdaemondata
virnetdevopenvswitchdata
virnetdevtestdata/sys/class/net
virnetworkportxml2xmldata tests: fix missing test data for network port XML 2020-02-25 15:43:56 +00:00
virnwfilterbindingxml2xmldata
virpcitestdata
virresctrldata
virscsidata
virstorageutildata
virusbtestdata/sys_bus_usb/devices
vmwareverdata
vmx2xmldata Add a check attribute on the mac address element 2020-07-23 16:11:39 +01:00
xlconfigdata Xen: Add support for writeFiltering in config converter 2020-09-01 14:29:46 -06:00
xmconfigdata Xen: Improve parsing of PCI addresses in config converter 2020-08-21 08:08:28 -06:00
xml2vmxdata Add a check attribute on the mac address element 2020-07-23 16:11:39 +01:00
.valgrind.supp
bhyveargv2xmlmock.c
bhyveargv2xmltest.c tests: bhyve: remove unnecessary labels 2020-08-03 07:23:46 +02:00
bhyvexml2argvmock.c
bhyvexml2argvtest.c bhyve: implement sound device support 2020-08-25 08:42:16 +04:00
bhyvexml2xmltest.c bhyve: implement sound device support 2020-08-25 08:42:16 +04:00
commandhelper.c Move declarations before statements 2020-08-25 19:03:11 +02:00
commandtest.c tests: commandtest: drop unnecessary labels 2020-08-03 07:23:45 +02:00
cputest.c tests: use g_auto for all virBuffers 2020-07-08 16:34:09 -04:00
domaincapsmock.c domaincapsmock: mock virHostCPUGetMicrocodeVersion() 2020-08-25 19:44:43 +02:00
domaincapstest.c lib: Prefer g_autoptr() declaration of virQEMUDriverConfigPtr 2020-09-07 10:47:54 +02:00
domainconftest.c
esxutilstest.c
eventtest.c lib: Prefer WITH_* prefix for #if conditionals 2020-09-02 10:28:10 +02:00
fchosttest.c
fdstreamtest.c
genericxml2xmltest.c Add a check attribute on the mac address element 2020-07-23 16:11:39 +01:00
interfacexml2xmltest.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
libvirtd-fail
libvirtd-pool
libxlmock.c
libxlxml2domconfigtest.c lib: Prefer WITH_* prefix for #if conditionals 2020-09-02 10:28:10 +02:00
lxcconf2xmltest.c
lxcxml2xmltest.c src: switch to use g_setenv/g_unsetenv 2020-01-03 15:42:12 +00:00
meson.build tests: Add simple test for virDomainMigrateCheckNotLocal 2020-09-04 10:20:49 +02:00
metadatatest.c
networkxml2conftest.c
networkxml2firewalltest.c tests: use g_auto for all virBuffers 2020-07-08 16:34:09 -04:00
networkxml2xmltest.c conf: add an attribute to turn on NAT for IPv6 virtual networks 2020-06-15 17:10:15 +01:00
networkxml2xmlupdatetest.c
nodedevmdevctltest.c Split declarations from initializations 2020-08-25 19:03:11 +02:00
nodedevxml2xmltest.c node_device: detect CSS devices 2020-09-15 09:06:15 +02:00
nsslinktest.c
nssmock.c tests: use WITH_NSS instead of NSS 2020-07-10 09:40:58 +02:00
nsstest.c tests: use WITH_NSS instead of NSS 2020-07-10 09:40:58 +02:00
nwfilterebiptablestest.c tests: use g_auto for all virBuffers 2020-07-08 16:34:09 -04:00
nwfilterxml2firewalltest.c tests: use g_auto for all virBuffers 2020-07-08 16:34:09 -04:00
nwfilterxml2xmltest.c
objecteventtest.c
openvzutilstest.c
openvzutilstest.conf
permitted_file_access.txt scripts: remove use of the term 'whitelist' from build helpers 2020-06-26 15:36:40 +01:00
pkix_asn1_tab.c
qemuagenttest.c tests: qemu: use g_autoptr where possible 2020-08-03 07:23:46 +02:00
qemublocktest.c tests: qemublocktest: fix crashing with SIGBUS 2020-08-04 20:19:48 +04:00
qemucapabilitiestest.c tests: get rid of 'make check' references 2020-08-17 08:42:47 +02:00
qemucaps2xmlmock.c
qemucaps2xmltest.c tests: qemu: remove unnecessary labels 2020-08-03 07:23:46 +02:00
qemucapsfixreplies
qemucapsprobe.c qemu: Invalidate capabilities when host CPU changes 2020-05-25 16:10:04 +02:00
qemucapsprobemock.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
qemucommandutiltest.c tests: use g_auto for all virBuffers 2020-07-08 16:34:09 -04:00
qemucpumock.c
qemudomaincheckpointxml2xmltest.c conf: checkpoint: Add a flag storing whether disk 'size' is valid 2020-07-07 12:58:19 +02:00
qemudomainsnapshotxml2xmltest.c tests: qemu: remove unnecessary labels 2020-08-03 07:23:46 +02:00
qemufirmwaretest.c
qemuhotplugmock.c replace g_new() with g_new0() for consistency 2020-07-20 19:08:07 -04:00
qemuhotplugtest.c tests: change confusing macro agument names 2020-09-02 23:45:39 -04:00
qemumemlocktest.c tests: qemu: remove unnecessary labels 2020-08-03 07:23:46 +02:00
qemumigparamstest.c qemumigparamstest: Validate output parameters against QMP schema 2020-08-24 16:42:57 +02:00
qemumonitorjsontest.c qemumonitorjsontest: Add a last-resort warning if object-add/device_add are QAPIfied 2020-08-24 13:02:35 +02:00
qemumonitortestutils.c tests: qemu: remove unnecessary labels 2020-08-03 07:23:46 +02:00
qemumonitortestutils.h qemumonitortestutils: Introduce qemuMonitorTestSkipDeprecatedValidation 2020-05-20 08:53:29 +02:00
qemusecuritymock.c tests: qemu: use g_autofree where possible 2020-08-03 07:23:46 +02:00
qemusecuritytest.c tests: qemu: Split NBD and VXHS protocol tests 2020-07-31 10:27:50 +02:00
qemusecuritytest.h
qemuvhostusertest.c
qemuxml2argvmock.c
qemuxml2argvtest.c qemu: Validate memory hotplug in domainValidateCallback instead of cmd line generator 2020-09-01 09:30:27 +02:00
qemuxml2xmltest.c tests: qemustatusxml2xmldata: Rename 'disk-secinfo-upgrade' case to 'upgrade' 2020-09-15 15:20:23 +02:00
scsihosttest.c testVirFindSCSIHostByPCI: Remove unused 'path_addr' 2020-06-15 10:27:37 +02:00
seclabeltest.c util: replace strerror/strerror_r with g_strerror 2019-10-14 10:54:42 +01:00
secretxml2xmltest.c
securityselinuxhelper.c lib: Prefer WITH_* prefix for #if conditionals 2020-09-02 10:28:10 +02:00
securityselinuxlabeltest.c meson: remove '.libs' from all relevant paths 2020-08-03 09:27:00 +02:00
securityselinuxtest.c meson: remove '.libs' from all relevant paths 2020-08-03 09:27:00 +02:00
shunloadhelper.c
shunloadtest.c meson: remove '.libs' from all relevant paths 2020-08-03 09:27:00 +02:00
sockettest.c tests: sockettest: move declarations 2020-08-25 19:03:12 +02:00
ssh.c src: remove virFilePrintf in favour of g_fprintf 2020-02-04 14:00:45 +00:00
storagebackendsheepdogtest.c
storagepoolcapstest.c
storagepoolxml2argvtest.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
storagepoolxml2xmltest.c conf: add control over COW for storage pool directories 2020-07-23 16:18:09 +01:00
storagevolxml2argvtest.c
storagevolxml2xmltest.c
sysinfotest.c virsysinfo: Parse OEM strings 2020-06-10 14:00:38 +02:00
test-lib.sh tests: get rid of 'make check' references 2020-08-17 08:42:47 +02:00
testutils.c meson: tests: built utils static libraries 2020-08-03 09:27:05 +02:00
testutils.h meson: remove '.libs' from all relevant paths 2020-08-03 09:27:00 +02:00
testutilshostcpus.h
testutilslxc.c
testutilslxc.h
testutilsqemu.c tests: qemu: use g_autofree where possible 2020-08-03 07:23:46 +02:00
testutilsqemu.h qemuxml2argvtest: Add QAPI/QMP schema validation for -blockdev and -netdev 2020-05-20 09:41:58 +02:00
testutilsqemuschema.c testutilsqemuschema: Add template checker for schema entries 2020-08-24 13:02:35 +02:00
testutilsqemuschema.h testutilsqemuschema: Add template checker for schema entries 2020-08-24 13:02:35 +02:00
testutilsxen.c
testutilsxen.h
utiltest.c tests: qemu: reduce scope of some variables 2020-08-03 07:23:45 +02:00
vboxsnapshotxmltest.c check for NULL before calling g_regex_unref 2020-09-08 16:07:47 +02:00
viralloctest.c
virauthconfigtest.c tests: authconfigtest: move declarations 2020-08-25 19:03:12 +02:00
virbitmaptest.c
virbuftest.c tests: eliminate unnecessary labels 2020-07-08 16:35:54 -04:00
vircaps2xmltest.c
vircapstest.c
vircgroupmock.c Move declarations before statements 2020-08-25 19:03:11 +02:00
vircgrouptest.c tests: use g_auto for all virBuffers 2020-07-08 16:34:09 -04:00
virconftest.c tests: Use glib memory function in testConfRoundTrip 2020-09-14 17:28:51 +02:00
vircryptotest.c
virdbusmock.c
virdbustest.c
virdeterministichashmock.c
virdriverconnvalidatetest.c
virdrivermoduletest.c
virendiantest.c
virerrortest.c
virfilecachemock.c
virfilecachetest.c qemu: don't continue loading caps if outdated 2020-06-23 17:33:30 +01:00
virfilemock.c lib: Prefer WITH_* prefix for #if conditionals 2020-09-02 10:28:10 +02:00
virfiletest.c lib: Prefer WITH_* prefix for #if conditionals 2020-09-02 10:28:10 +02:00
virfilewrapper.c
virfilewrapper.h
virfirewalltest.c use g_autoptr() for all usages of virFirewallNew/Free 2020-07-08 16:36:19 -04:00
virhashdata.h
virhashtest.c
virhostcpumock.c
virhostcputest.c tests: use g_auto for all virBuffers 2020-07-08 16:34:09 -04:00
virhostdevmock.c
virhostdevtest.c
viridentitytest.c meson: remove '.libs' from all relevant paths 2020-08-03 09:27:00 +02:00
viriscsitest.c tests: iscsitest: split out testISCSIScanTargetsTests 2020-08-25 19:03:12 +02:00
virjsontest.c
virkeycodetest.c
virkmodtest.c tests: use g_auto for all virBuffers 2020-07-08 16:34:09 -04:00
virlockspacetest.c
virlogtest.c
virmacmaptest.c
virmigtest.c peer2peer migration: allow connecting to local sockets 2020-09-04 10:20:49 +02:00
virmock.h lib: Prefer WITH_* prefix for #if conditionals 2020-09-02 10:28:10 +02:00
virmockstathelpers.c lib: Prefer WITH_* prefix for #if conditionals 2020-09-02 10:28:10 +02:00
virnetdaemonmock.c tests: don't mock the time() function on mingw 2020-07-23 14:58:16 +01:00
virnetdaemontest.c
virnetdevbandwidthmock.c
virnetdevbandwidthtest.c tests: use g_auto for all virBuffers 2020-07-08 16:34:09 -04:00
virnetdevmock.c
virnetdevopenvswitchtest.c
virnetdevtest.c
virnetmessagetest.c
virnetserverclientmock.c
virnetserverclienttest.c
virnetsockettest.c rpc: use new virt-ssh-helper binary for remote tunnelling 2020-09-09 16:46:22 +01:00
virnettlscontexttest.c lib: Prefer WITH_* prefix for #if conditionals 2020-09-02 10:28:10 +02:00
virnettlshelpers.c lib: Prefer WITH_* prefix for #if conditionals 2020-09-02 10:28:10 +02:00
virnettlshelpers.h lib: Prefer WITH_* prefix for #if conditionals 2020-09-02 10:28:10 +02:00
virnettlssessiontest.c lib: Prefer WITH_* prefix for #if conditionals 2020-09-02 10:28:10 +02:00
virnetworkportxml2xmltest.c
virnumamock.c
virnwfilterbindingxml2xmltest.c
virpcimock.c tests: Use glib memory functions in pci_driver_new 2020-09-11 18:19:59 +02:00
virpcitest.c
virpolkittest.c
virportallocatormock.c lib: Prefer WITH_* prefix for #if conditionals 2020-09-02 10:28:10 +02:00
virportallocatortest.c lib: Prefer WITH_* prefix for #if conditionals 2020-09-02 10:28:10 +02:00
virprocessmock.c
virrandommock.c
virresctrltest.c
virrotatingfiletest.c Split declarations from initializations 2020-08-25 19:03:11 +02:00
virschematest.c tests: schema: test bhyvexml2xmloutdata schemas 2020-08-22 16:40:44 +04:00
virscsitest.c
virsh-auth
virsh-auth.xml
virsh-checkpoint
virsh-cpuset
virsh-define-dev-segfault
virsh-int-overflow
virsh-optparse meson: src/util/virfile: rewrite virFileActivateDirOverrideForProg 2020-08-03 09:26:36 +02:00
virsh-read-bufsiz
virsh-read-non-seekable
virsh-schedinfo meson: src/util/virfile: rewrite virFileActivateDirOverrideForProg 2020-08-03 09:26:36 +02:00
virsh-self-test
virsh-snapshot
virsh-start
virsh-undefine tests: fix license blurb in virsh-undefine 2020-09-01 23:14:16 +02:00
virsh-uriprecedence
virsh-vcpupin
virshtest.c
virstoragetest.c lib: Prefer WITH_* prefix for #if conditionals 2020-09-02 10:28:10 +02:00
virstorageutiltest.c
virstringtest.c tests: use VIR_WARNINGS_NO_DECLARATION_AFTER_STATEMENT 2020-08-25 19:03:13 +02:00
virsystemdtest.c
virt-aa-helper-test meson: tests: add test scripts 2020-08-03 09:27:06 +02:00
virt-admin-self-test
virtestmock.c meson: tests: add file access test setup 2020-08-03 09:27:06 +02:00
virtimetest.c
virtypedparamtest.c Use G_N_ELEMENTS instead of ARRAY_CARDINALITY 2019-10-15 16:14:19 +02:00
viruritest.c tests: use VIR_WARNINGS_NO_DECLARATION_AFTER_STATEMENT 2020-08-25 19:03:13 +02:00
virusbmock.c
virusbtest.c
vmwarevertest.c
vmx2xmltest.c
vshtabletest.c lib: Prefer WITH_* prefix for #if conditionals 2020-09-02 10:28:10 +02:00
xlconfigtest.c Xen: Add support for writeFiltering in config converter 2020-09-01 14:29:46 -06:00
xmconfigtest.c Xen: Improve parsing of PCI addresses in config converter 2020-08-21 08:08:28 -06:00
xml2vmxtest.c Add a type attribute on the mac address element 2020-07-13 18:47:44 +02:00