mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
c8d5703150
Invoke the majority of the command via DO_TEST_SCRIPT in 'virshtest'. Some adaptation was needed to avoid printing of tables with volatile data such as snapshot creation time, which were converted to list names-only. To proprely test redefinition we store XMLs rather than taking them from the defined snapshots and use them separately to test redefinition of snapshot XMLs. This makes use of the 'cd' command in non-interactive mode. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
41 lines
1.3 KiB
XML
41 lines
1.3 KiB
XML
<domainsnapshot>
|
|
<name>s3</name>
|
|
<state>running</state>
|
|
<creationTime>5678</creationTime>
|
|
<memory snapshot='internal'/>
|
|
<disks>
|
|
<disk name='vda' snapshot='internal'/>
|
|
</disks>
|
|
<domain type='test'>
|
|
<name>test</name>
|
|
<uuid>6695eb01-f6a4-8304-79aa-97f2502e193f</uuid>
|
|
<memory unit='KiB'>8388608</memory>
|
|
<currentMemory unit='KiB'>2097152</currentMemory>
|
|
<vcpu placement='static'>2</vcpu>
|
|
<os>
|
|
<type arch='i686'>hvm</type>
|
|
<boot dev='hd'/>
|
|
</os>
|
|
<clock offset='utc'/>
|
|
<on_poweroff>destroy</on_poweroff>
|
|
<on_reboot>restart</on_reboot>
|
|
<on_crash>destroy</on_crash>
|
|
<devices>
|
|
<disk type='file' device='disk'>
|
|
<source file='/guest/diskimage1'/>
|
|
<target dev='vda' bus='virtio'/>
|
|
<address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
|
|
</disk>
|
|
<interface type='network'>
|
|
<mac address='aa:bb:cc:dd:ee:ff'/>
|
|
<source network='default'/>
|
|
<target dev='testnet0'/>
|
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/>
|
|
</interface>
|
|
<memballoon model='virtio'>
|
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
|
|
</memballoon>
|
|
</devices>
|
|
</domain>
|
|
</domainsnapshot>
|