libvirt/tests
Eric Blake 252958ee16 backup: Document new XML for backups
Prepare for new backup APIs by describing the XML that will represent
a backup.  The XML resembles snapshots and checkpoints in being able
to select actions for a set of disks, but has other differences.  It
can support both push model (the hypervisor does the backup directly
into the destination file) and pull model (the hypervisor exposes an
access port for a third party to grab what is necessary).  Add
testsuite coverage for some minimal uses of the XML.

The <disk> element within <domainbackup> tries to model the same
elements as a <disk> under <domain>, but sharing the RNG grammar
proved to be hairy. That is in part because while <domain> use
<source> to describe a host resource in use by the guest, a backup job
is using a host resource that is not visible to the guest: a push
backup action is instead describing a <target> (which ultimately could
be a remote network resource, but for simplicity the RNG just
validates a local file for now), and a pull backup action is instead
describing a temporary local file <scratch> (which probably should not
be a remote resource).  A future refactoring may thus introduce some
way to parameterize RNG to accept <disk type='FOO'>...</disk> so that
the name of the subelement can be <source> for domain, or <target> or
<scratch> as needed for backups. Future patches may improve this area
of code.

Signed-off-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2019-12-10 12:41:56 +01:00
..
bhyveargv2xmldata
bhyvexml2argvdata
bhyvexml2xmloutdata
capabilityschemadata tests: fix name of 32-bit x86 QEMU binary 2019-12-03 13:57:44 +00:00
commanddata
cputestdata build: only support python3 binary 2019-12-04 13:13:01 +00:00
domainbackupxml2xmlin backup: Document new XML for backups 2019-12-10 12:41:56 +01:00
domaincapsdata qemu: enable blockdev support 2019-11-22 12:51:27 +01:00
domainconfdata
domainschemadata tests: fix name of 32-bit x86 QEMU binary 2019-12-03 13:57:44 +00:00
fchostdata/fc_host
genericxml2xmlindata tests: fix name of 32-bit x86 QEMU binary 2019-12-03 13:57:44 +00:00
genericxml2xmloutdata tests: fix name of 32-bit x86 QEMU binary 2019-12-03 13:57:44 +00:00
interfaceschemadata
libxlxml2domconfigdata
lxcconf2xmldata
lxcxml2xmldata
lxcxml2xmloutdata
networkxml2confdata
networkxml2firewalldata
networkxml2xmlin
networkxml2xmlout
networkxml2xmlupdatein
networkxml2xmlupdateout
nodedevschemadata
nssdata
nwfilterxml2firewalldata
nwfilterxml2xmlin
nwfilterxml2xmlout nwfilter: Add support for icmpv6 filtering 2015-01-07 11:41:49 -05:00
qemuagentdata tests: fix name of 32-bit x86 QEMU binary 2019-12-03 13:57:44 +00:00
qemublocktestdata tests: qemublock: Use bigger numbers as dummy capacity/physical 2019-09-04 09:13:49 +02:00
qemucapabilitiesdata qemu: enable blockdev support 2019-11-22 12:51:27 +01:00
qemucaps2xmloutdata conf: Refactor storage of guest capabilities 2019-11-13 08:16:04 +01:00
qemudomaincheckpointxml2xmlin
qemudomaincheckpointxml2xmlout tests: fix name of 32-bit x86 QEMU binary 2019-12-03 13:57:44 +00:00
qemudomainsnapshotxml2xmlin
qemudomainsnapshotxml2xmlout tests: fix name of 32-bit x86 QEMU binary 2019-12-03 13:57:44 +00:00
qemufirmwaredata qemufirmwaretest: Test qemuFirmwareFetchConfigs() 2019-03-12 15:29:44 +01:00
qemuhotplugtestcpus
qemuhotplugtestdevices
qemuhotplugtestdomains tests: fix name of 32-bit x86 QEMU binary 2019-12-03 13:57:44 +00:00
qemumemlockdata
qemumigparamsdata
qemumonitorjsondata
qemustatusxml2xmldata tests: fix name of 32-bit x86 QEMU binary 2019-12-03 13:57:44 +00:00
qemuvhostuserdata
qemuxml2argvdata tests: fix name of 32-bit x86 QEMU binary 2019-12-03 13:57:44 +00:00
qemuxml2xmloutdata tests: fix name of 32-bit x86 QEMU binary 2019-12-03 13:57:44 +00:00
secretxml2xmlin
securityselinuxhelperdata
securityselinuxlabeldata
storagepoolcapsschemadata
storagepoolschemadata
storagepoolxml2argvdata storage: Add storage pool namespace options to fs and netfs command lines 2019-01-29 19:16:19 -05:00
storagepoolxml2xmlin
storagepoolxml2xmlout
storagevolschemadata
storagevolxml2argvdata
storagevolxml2xmlin
storagevolxml2xmlout
sysinfodata
vboxsnapshotxmldata
vircaps2xmldata
vircgroupdata vircgroupmock: mock virCgroupV2DevicesAvailable 2019-11-15 12:58:43 +01:00
virconfdata
virfilecachedata
virfiledata
virhostcpudata
virjsondata
virmacmaptestdata
virnetdaemondata
virnetdevopenvswitchdata
virnetdevtestdata/sys/class/net
virnetworkportxml2xmldata
virnwfilterbindingxml2xmldata
virpcitestdata
virresctrldata
virscsidata
virstorageutildata
virusbtestdata/sys_bus_usb/devices
vmwareverdata
vmx2xmldata vmx: convert firmware config for autoselection 2019-04-15 20:03:55 -04:00
xlconfigdata
xmconfigdata
xml2vmxdata
.valgrind.supp
bhyveargv2xmlmock.c
bhyveargv2xmltest.c conf: drop virCapsPtr param from domain formatting APIs 2019-12-09 10:17:27 +00:00
bhyvexml2argvmock.c conf: return a const from virDomainNetGetActualVirtPortProfile 2019-11-25 15:29:56 -05:00
bhyvexml2argvtest.c conf: drop virCapsPtr param from domain parse APIs 2019-12-09 10:17:27 +00:00
bhyvexml2xmltest.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
check-file-access.pl tests: Make check-file-access.pl accept files through argv 2019-12-04 15:43:09 +01:00
commandhelper.c
commandtest.c tests: remove unneeded cleanup labels 2019-11-19 15:22:43 +01:00
cputest.c conf: make virCPUDef into a ref counted struct 2019-12-09 10:17:27 +00:00
domaincapsmock.c
domaincapstest.c qemu: use host CPU object directly 2019-12-09 10:17:27 +00:00
domainconftest.c conf: drop virCapsPtr param from domain parse APIs 2019-12-09 10:17:27 +00:00
esxutilstest.c
eventtest.c Use g_strdup_vprintf() instead of virVasprintf() everywhere 2019-11-12 16:15:59 +01:00
fchosttest.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
fdstreamtest.c Use g_mkdtemp instead of mkdtemp 2019-11-14 19:02:31 +01:00
file_access_whitelist.txt
genericxml2xmltest.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
group-qemu-caps.pl
interfacexml2xmltest.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
libvirtd-fail
libvirtd-pool tests: consistently source test-lib.sh in scripts 2016-04-23 15:41:40 -04:00
libxlmock.c replace use of gnulib snprintf by g_snprintf 2019-11-15 15:07:40 +01:00
libxlxml2domconfigtest.c conf: drop virCapsPtr param from domain parse APIs 2019-12-09 10:17:27 +00:00
lxcconf2xmltest.c conf: drop virCapsPtr param from domain formatting APIs 2019-12-09 10:17:27 +00:00
lxcxml2xmltest.c conf: don't use passed in caps in post parse method 2019-12-09 10:15:16 +00:00
Makefile.am backup: Document new XML for backups 2019-12-10 12:41:56 +01:00
metadatatest.c
networkxml2conftest.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
networkxml2firewalltest.c tests: remove unneeded cleanup labels 2019-11-19 15:22:43 +01:00
networkxml2xmltest.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
networkxml2xmlupdatetest.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
nodedevxml2xmltest.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
nsslinktest.c
nssmock.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
nsstest.c tests: remove unneeded cleanup labels 2019-11-19 15:22:43 +01:00
nwfilterebiptablestest.c tests: remove unneeded cleanup labels 2019-11-19 15:22:43 +01:00
nwfilterxml2firewalltest.c tests: remove unneeded cleanup labels 2019-11-19 15:22:43 +01:00
nwfilterxml2xmltest.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
objecteventtest.c
openvzutilstest.c tests: fix warning with old GCC about missing struct initializer 2019-12-09 14:46:13 +00:00
openvzutilstest.conf
pkix_asn1_tab.c
qemuagenttest.c conf: drop virCapsPtr param from domain parse APIs 2019-12-09 10:17:27 +00:00
qemublocktest.c conf: move seclabel validation into post-parse phase 2019-12-09 10:15:16 +00:00
qemucapabilitiestest.c qemu: use host CPU object directly 2019-12-09 10:17:27 +00:00
qemucaps2xmlmock.c
qemucaps2xmltest.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
qemucapsfixreplies
qemucapsprobe.c
qemucapsprobemock.c
qemucommandutiltest.c
qemucpumock.c
qemudomaincheckpointxml2xmltest.c conf: drop virCapsPtr param from snapshot & checkpoint APIs 2019-12-09 10:17:27 +00:00
qemudomainsnapshotxml2xmltest.c conf: drop virCapsPtr param from snapshot & checkpoint APIs 2019-12-09 10:17:27 +00:00
qemufirmwaretest.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
qemuhotplugmock.c qemu_hotplug.c: adding qemuDomainGetUnplugTimeout 2019-11-13 15:03:40 -05:00
qemuhotplugtest.c conf: drop virCapsPtr param from domain APIs for copying config 2019-12-09 10:17:27 +00:00
qemumemlocktest.c conf: drop virCapsPtr param from domain parse APIs 2019-12-09 10:17:27 +00:00
qemumigparamstest.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
qemumonitorjsontest.c qemu: Use virDomainCapsCPUUsable in qemuMonitorCPUDefInfo 2019-11-20 17:22:05 +01:00
qemumonitortestutils.c Use g_mkdtemp instead of mkdtemp 2019-11-14 19:02:31 +01:00
qemumonitortestutils.h
qemusecuritymock.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
qemusecuritytest.c conf: drop virCapsPtr param from domain parse APIs 2019-12-09 10:17:27 +00:00
qemusecuritytest.h
qemuvhostusertest.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
qemuxml2argvmock.c tests: Remove _NULLABLE in virNetDevExists mock 2019-11-06 11:27:12 -05:00
qemuxml2argvtest.c qemu: use host CPU object directly 2019-12-09 10:17:27 +00:00
qemuxml2xmltest.c conf: drop virCapsPtr param from domain parse APIs 2019-12-09 10:17:27 +00:00
scsihosttest.c Use g_mkdtemp instead of mkdtemp 2019-11-14 19:02:31 +01:00
seclabeltest.c
secretxml2xmltest.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
securityselinuxhelper.c
securityselinuxlabeltest.c conf: drop virCapsPtr param from domain parse APIs 2019-12-09 10:17:27 +00:00
securityselinuxtest.c
shunloadhelper.c
shunloadtest.c
sockettest.c
ssh.c
storagebackendsheepdogtest.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
storagepoolcapstest.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
storagepoolxml2argvtest.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
storagepoolxml2xmltest.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
storagevolxml2argvtest.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
storagevolxml2xmltest.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
sysinfotest.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
test-lib.sh
testutils.c conf: move NUMA capabilities into self contained object 2019-12-09 10:17:27 +00:00
testutils.h conf: move NUMA capabilities into self contained object 2019-12-09 10:17:27 +00:00
testutilshostcpus.h
testutilslxc.c conf: don't use passed in caps in post parse method 2019-12-09 10:15:16 +00:00
testutilslxc.h conf: don't use passed in caps in post parse method 2019-12-09 10:15:16 +00:00
testutilsqemu.c qemu: use host CPU object directly 2019-12-09 10:17:27 +00:00
testutilsqemu.h qemu: use host CPU object directly 2019-12-09 10:17:27 +00:00
testutilsqemuschema.c util: virbuffer: Remove @dynamic from virBufferGetIndent 2019-10-24 19:35:34 +02:00
testutilsqemuschema.h
testutilsxen.c conf: don't use passed in caps in post parse method 2019-12-09 10:15:16 +00:00
testutilsxen.h conf: don't use passed in caps in post parse method 2019-12-09 10:15:16 +00:00
utiltest.c
vboxsnapshotxmltest.c tests: use GRegex in vboxsnapshotxmltest 2019-11-14 17:45:40 +01:00
viralloctest.c
viratomictest.c
virauthconfigtest.c tests: remove unneeded cleanup labels 2019-11-19 15:22:43 +01:00
virbitmaptest.c tests: Fix logic to not have possible NULL deref 2019-11-06 11:27:12 -05:00
virbuftest.c util: buffer: Remove virBufferError 2019-10-24 19:35:34 +02:00
vircaps2xmltest.c conf: move NUMA capabilities into self contained object 2019-12-09 10:17:27 +00:00
vircapstest.c conf: move NUMA capabilities into self contained object 2019-12-09 10:17:27 +00:00
vircgroupmock.c tests: remove unneeded cleanup labels 2019-11-19 15:22:43 +01:00
vircgrouptest.c vircgroupmock: mock virCgroupV2DevicesAvailable 2019-11-15 12:58:43 +01:00
virconftest.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
vircryptotest.c
virdbusmock.c
virdbustest.c
virdeterministichashmock.c
virdriverconnvalidatetest.c
virdrivermoduletest.c
virendiantest.c tests: remove unneeded cleanup labels 2019-11-19 15:22:43 +01:00
virerrortest.c
virfilecachemock.c
virfilecachetest.c
virfilemock.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
virfiletest.c g_mkstemp_full: pass O_RDWR 2019-11-18 18:49:02 +01:00
virfilewrapper.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
virfilewrapper.h
virfirewalltest.c util: buffer: Remove virBufferError 2019-10-24 19:35:34 +02:00
virhashdata.h
virhashtest.c
virhostcpumock.c
virhostcputest.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
virhostdevtest.c Use g_mkdtemp instead of mkdtemp 2019-11-14 19:02:31 +01:00
viridentitytest.c
viriscsitest.c
virjsontest.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
virkeycodetest.c tests: remove unneeded cleanup labels 2019-11-19 15:22:43 +01:00
virkeyfiletest.c
virkmodtest.c util: buffer: Remove virBufferError 2019-10-24 19:35:34 +02:00
virlockspacetest.c
virlogtest.c
virmacmaptest.c tests: remove unneeded cleanup labels 2019-11-19 15:22:43 +01:00
virmock.h
virmockstathelpers.c
virnetdaemonmock.c
virnetdaemontest.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
virnetdevbandwidthmock.c
virnetdevbandwidthtest.c util: buffer: Remove virBufferError 2019-10-24 19:35:34 +02:00
virnetdevmock.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
virnetdevopenvswitchtest.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
virnetdevtest.c tests: remove unneeded cleanup labels 2019-11-19 15:22:43 +01:00
virnetmessagetest.c
virnetserverclientmock.c
virnetserverclienttest.c
virnetsockettest.c replace use of gnulib snprintf by g_snprintf 2019-11-15 15:07:40 +01:00
virnettlscontexttest.c
virnettlshelpers.c
virnettlshelpers.h
virnettlssessiontest.c
virnetworkportxml2xmltest.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
virnumamock.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
virnwfilterbindingxml2xmltest.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
virpcimock.c tests: remove unneeded cleanup labels 2019-11-19 15:22:43 +01:00
virpcitest.c tests: remove unneeded cleanup labels 2019-11-19 15:22:43 +01:00
virpolkittest.c tests: remove unneeded cleanup labels 2019-11-19 15:22:43 +01:00
virportallocatormock.c tests: use G_GNUC_UNUSED 2019-10-15 11:25:25 +02:00
virportallocatortest.c
virprocessmock.c tests: use G_GNUC_UNUSED 2019-10-15 11:25:25 +02:00
virrandommock.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
virresctrltest.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
virrotatingfiletest.c
virschematest.c backup: Document new XML for backups 2019-12-10 12:41:56 +01:00
virscsitest.c Use g_mkdtemp instead of mkdtemp 2019-11-14 19:02:31 +01:00
virsh-checkpoint
virsh-cpuset
virsh-define-dev-segfault tests: fix name of 32-bit x86 QEMU binary 2019-12-03 13:57:44 +00:00
virsh-int-overflow
virsh-optparse
virsh-read-bufsiz
virsh-read-non-seekable
virsh-schedinfo
virsh-self-test
virsh-snapshot
virsh-start
virsh-undefine
virsh-uriprecedence
virsh-vcpupin
virshtest.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
virstoragetest.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
virstorageutiltest.c
virstringtest.c tests: remove unneeded cleanup labels 2019-11-19 15:22:43 +01:00
virsystemdtest.c replace use of gnulib snprintf by g_snprintf 2019-11-15 15:07:40 +01:00
virt-aa-helper-test virt-aa-helper: testcase for shmem devices 2019-11-21 08:27:03 +01:00
virt-admin-self-test
virtestmock.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
virtimetest.c
virtypedparamtest.c
viruritest.c util: buffer: Encode URIs with upper case hex characters 2019-10-24 19:35:34 +02:00
virusbmock.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
virusbtest.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
vmwarevertest.c tests: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:59 +01:00
vmx2xmltest.c conf: drop virCapsPtr param from domain formatting APIs 2019-12-09 10:17:27 +00:00
vshtabletest.c
xlconfigtest.c xen: Remove unused 'cfg' 2019-12-09 14:06:15 +01:00
xmconfigtest.c xen: Remove unused 'cfg' 2019-12-09 14:06:15 +01:00
xml2vmxtest.c conf: drop virCapsPtr param from domain parse APIs 2019-12-09 10:17:27 +00:00