]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: qemublock: Add test for raw luks disk format
authorPeter Krempa <pkrempa@redhat.com>
Thu, 19 Apr 2018 14:16:44 +0000 (16:16 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 7 May 2018 13:58:51 +0000 (15:58 +0200)
commit23a7f948936ae022f2aad454eddafe33a0dd2196
tree1ac31febd07dec79587b5b6980a3e0e0549ec34f
parentac71f4e6d5839ccefc0517f7dbade32d4d1fe8f2
tests: qemublock: Add test for raw luks disk format

Apart from adding test data add a function which sets up fake secrets
for the test.

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

-drive file=/path/luks.img,key-secret=test1-encalias,format=luks,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-raw-luks.json [new file with mode: 0644]
tests/qemublocktestdata/xml2json/file-raw-luks.xml [new file with mode: 0644]