]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: qemublock: basic qcow2 tests
authorPeter Krempa <pkrempa@redhat.com>
Fri, 16 Mar 2018 16:56:16 +0000 (17:56 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 7 May 2018 14:01:09 +0000 (16:01 +0200)
commit2c71edcf90b343b821245dbd50eba9a801e3b0a0
tree49a1db4fe8579fd9ea322523ca7f717f19bd1738
parent23a7f948936ae022f2aad454eddafe33a0dd2196
tests: qemublock: basic qcow2 tests

Add tests for backing chain handling, including a very long chain which
is fully specified in the XML and an unterminated chain.

The top level disk image would generate the following '-drive':

file-qcow2-backing-chain-encryption.xml:
-drive file=/var/lib/libvirt/images/a,encrypt.format=luks,
    encrypt.key-secret=node-b-f-encalias,format=qcow2,if=none,id=drive-dummy
-device virtio-blk-pci,scsi=off,drive=drive-dummy,id=dummy

file-qcow2-backing-chain-noopts.xml:
-drive file=/var/lib/libvirt/images/rhel7.3.1507297895,format=qcow2,if=none,id=drive-dummy
-device virtio-blk-pci,scsi=off,drive=drive-dummy,id=dummy

file-qcow2-backing-chain-unterminated.xml:
-drive file=/var/lib/libvirt/images/rhel7.3.1507297895,format=qcow2,if=none,id=drive-dummy
-device virtio-blk-pci,scsi=off,drive=drive-dummy,id=dummy

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
tests/qemublocktest.c
tests/qemublocktestdata/xml2json/file-qcow2-backing-chain-encryption.json [new file with mode: 0644]
tests/qemublocktestdata/xml2json/file-qcow2-backing-chain-encryption.xml [new file with mode: 0644]
tests/qemublocktestdata/xml2json/file-qcow2-backing-chain-noopts.json [new file with mode: 0644]
tests/qemublocktestdata/xml2json/file-qcow2-backing-chain-noopts.xml [new file with mode: 0644]
tests/qemublocktestdata/xml2json/file-qcow2-backing-chain-unterminated.json [new file with mode: 0644]
tests/qemublocktestdata/xml2json/file-qcow2-backing-chain-unterminated.xml [new file with mode: 0644]