]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: qemumonitorjson: Test extraction of LUKS node names
authorPeter Krempa <pkrempa@redhat.com>
Thu, 27 Jul 2017 08:26:41 +0000 (10:26 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 27 Jul 2017 08:34:13 +0000 (10:34 +0200)
commit86d8d11c148d6c99e53bbd92867c13d353530e5d
tree3b038fcc5541083d29d13b1a21d4ec9e1f5db1ce
parentb717be71dcb3a419b49cae846a1e60054db21081
tests: qemumonitorjson: Test extraction of LUKS node names

Test file created by:

qemu-img create -f luks /var/lib/libvirt/images/luks 10M \
        -o key-secret=asdf --object secret,id=asdf,format=raw,data=asdf

Used in libvirt as:
 <disk type='file' device='disk'>
   <driver name='qemu' type='raw'/>
   <source file='/var/lib/libvirt/images/luks'/>
   <target dev='vda' bus='virtio'/>
   <encryption format='luks'>
     <secret type='passphrase' uuid='9b2c831a-fdb9-4c09-873c-1959580589e1'/>
   </encryption>
 </disk>

Reviewed-by: Eric Blake <eblake@redhat.com>
tests/qemumonitorjsondata/qemumonitorjson-nodename-luks-blockstats.json [new file with mode: 0644]
tests/qemumonitorjsondata/qemumonitorjson-nodename-luks-named-nodes.json [new file with mode: 0644]
tests/qemumonitorjsondata/qemumonitorjson-nodename-luks.result [new file with mode: 0644]
tests/qemumonitorjsontest.c