]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: qemublock: Add test combining authentication and encryption
authorPeter Krempa <pkrempa@redhat.com>
Mon, 19 Mar 2018 11:51:20 +0000 (12:51 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 7 May 2018 14:03:46 +0000 (16:03 +0200)
commit18458e8fd151dae14923b9b22c5ac4dd2ac8bd24
tree056af5254e58bd834ee045a756108ff1f39872fe
parent2c71edcf90b343b821245dbd50eba9a801e3b0a0
tests: qemublock: Add test combining authentication and encryption

iscsi and rbd support authentication of the connection. Combine it with
encryption of qcow2.

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

-drive file=rbd:rbdpool/rbdimg:id=testuser-rbd:auth_supported=cephx\;none:
            mon_host=host1.example.com\;host2.example.com,
            file.password-secret=node-a-s-secalias,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

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