1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-23 21:34:54 +03:00

qemustatusxml2xml: backup-pull: Test private data formatting/parsing

Modify the test case to enable TLS and add private data containing
aliases of objects corresponding to a TLS setup.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Peter Krempa 2020-09-14 17:46:42 +02:00
parent 2f7ee6914d
commit 6c2d91118d

View File

@ -254,12 +254,18 @@
<backups> <backups>
<domainbackup mode='pull'> <domainbackup mode='pull'>
<incremental>12345</incremental> <incremental>12345</incremental>
<server transport='tcp' name='localhost' port='10809'/> <server transport='tcp' tls='yes' name='localhost' port='10809'/>
<disks> <disks>
<disk name='vda' backup='yes' state='running' type='file'> <disk name='vda' backup='yes' state='running' type='file'>
<scratch file='/path/to/file/'/> <scratch file='/path/to/file/'/>
</disk> </disk>
</disks> </disks>
<privateData>
<objects>
<secret type='tlskey' alias='testalias-secret'/>
<TLSx509 alias='testalias-tlsx509'/>
</objects>
</privateData>
</domainbackup> </domainbackup>
</backups> </backups>
<domain type='kvm' id='4'> <domain type='kvm' id='4'>