block: add support for encryption secrets in block I/O tests
commitb7e875b2f98c2724b5f915f5808f8828fd9b05a8
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 10 May 2016 16:11:28 +0000 (10 17:11 +0100)
committerMax Reitz <mreitz@redhat.com>
Thu, 12 May 2016 13:33:24 +0000 (12 15:33 +0200)
tree677b83ceeb94c450a605a94758ba2001161523d3
parent076003f526cebbf5bbef826f752019da5d2c3e89
block: add support for encryption secrets in block I/O tests

The LUKS block driver tests will require the ability to specify
encryption secrets with block devices. This requires using the
--object argument to qemu-img/qemu-io to create a 'secret'
object.

When the IMGKEYSECRET env variable is set, it provides the
password to be associated with a secret called 'keysec0'

The _qemu_img_wrapper function isn't modified as that needs
to cope with differing syntax for subcommands, so can't be
made to use the image opts syntax unconditionally.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Message-id: 1462896689-18450-3-git-send-email-berrange@redhat.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
tests/qemu-iotests/common
tests/qemu-iotests/common.config
tests/qemu-iotests/common.filter
tests/qemu-iotests/common.rc