mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 06:50:22 +03:00
domainbackupxml2xml: Add test case with unix socket server for pull mode backup
While we show the example in the docs we don't have an example XML for exercising the parser/formatter and schema. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
5d95391203
commit
67d2787807
22
tests/domainbackupxml2xmlin/backup-pull-unix.xml
Normal file
22
tests/domainbackupxml2xmlin/backup-pull-unix.xml
Normal file
@ -0,0 +1,22 @@
|
||||
<domainbackup mode='pull'>
|
||||
<incremental>1525889631</incremental>
|
||||
<server transport='unix' socket='/path/to/server'/>
|
||||
<disks>
|
||||
<disk name='vda' type='file'>
|
||||
<scratch file='/path/to/file'/>
|
||||
</disk>
|
||||
<disk name='hda' backup='no'/>
|
||||
<disk name='vdc' type='file' backupmode='full'>
|
||||
<scratch file='/path/to/file'/>
|
||||
</disk>
|
||||
<disk name='vdd' type='file' backupmode='incremental'>
|
||||
<scratch file='/path/to/file'/>
|
||||
</disk>
|
||||
<disk name='vde' type='file' backupmode='incremental' incremental='blah'>
|
||||
<scratch file='/path/to/file'/>
|
||||
</disk>
|
||||
<disk name='vdf' type='file' incremental='bleh'>
|
||||
<scratch file='/path/to/file'/>
|
||||
</disk>
|
||||
</disks>
|
||||
</domainbackup>
|
23
tests/domainbackupxml2xmlout/backup-pull-unix.xml
Normal file
23
tests/domainbackupxml2xmlout/backup-pull-unix.xml
Normal file
@ -0,0 +1,23 @@
|
||||
<domainbackup mode='pull'>
|
||||
<incremental>1525889631</incremental>
|
||||
<server transport='unix' socket='/path/to/server'/>
|
||||
<disks>
|
||||
<disk name='vda' backup='yes' type='file' backupmode='incremental' incremental='1525889631'>
|
||||
<scratch file='/path/to/file'/>
|
||||
</disk>
|
||||
<disk name='hda' backup='no'/>
|
||||
<disk name='vdc' backup='yes' type='file' backupmode='full'>
|
||||
<scratch file='/path/to/file'/>
|
||||
</disk>
|
||||
<disk name='vdd' backup='yes' type='file' backupmode='incremental' incremental='1525889631'>
|
||||
<scratch file='/path/to/file'/>
|
||||
</disk>
|
||||
<disk name='vde' backup='yes' type='file' backupmode='incremental' incremental='blah'>
|
||||
<scratch file='/path/to/file'/>
|
||||
</disk>
|
||||
<disk name='vdf' backup='yes' type='file' backupmode='incremental' incremental='bleh'>
|
||||
<scratch file='/path/to/file'/>
|
||||
</disk>
|
||||
<disk name='vdextradisk' backup='no'/>
|
||||
</disks>
|
||||
</domainbackup>
|
@ -244,6 +244,7 @@ mymain(void)
|
||||
|
||||
DO_TEST_BACKUP("empty");
|
||||
DO_TEST_BACKUP("backup-pull");
|
||||
DO_TEST_BACKUP("backup-pull-unix");
|
||||
DO_TEST_BACKUP("backup-pull-seclabel");
|
||||
DO_TEST_BACKUP("backup-pull-encrypted");
|
||||
DO_TEST_BACKUP("backup-push");
|
||||
|
Loading…
x
Reference in New Issue
Block a user