libvirt/tests/qemublocktestdata/xml2json/file-raw-luks.json
Peter Krempa 23a7f94893 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>
2018-05-07 15:58:51 +02:00

14 lines
249 B
JSON

{
"node-name": "test1",
"read-only": false,
"driver": "luks",
"key-secret": "test1-encalias",
"file": {
"driver": "file",
"filename": "/path/luks.img",
"node-name": "test2",
"read-only": false,
"discard": "unmap"
}
}