mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 05:17:59 +03:00
23a7f94893
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>
14 lines
249 B
JSON
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"
|
|
}
|
|
}
|