]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemublocktest: Add JSON->JSON test cases for block device backends
authorPeter Krempa <pkrempa@redhat.com>
Mon, 9 Mar 2020 16:06:10 +0000 (17:06 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 16 Mar 2020 14:51:44 +0000 (15:51 +0100)
commitd089234110282069e9a6dfe879ca257d114bb5bd
treed778958db508f3ad342f00357d95125df4448baf
parent7f8d0ca56a8335b29f3973e5490815c7cfbeac13
qemublocktest: Add JSON->JSON test cases for block device backends

Add testing of the interpretation of the JSON pseudo-protocol backing
store into JSON structs for blockdev. This will be used to test JSON
pseudo-URIs used by libguestfs while actually also validating the output
against the QMP schema. Since libguestfs uses obsolete/undocumented
values the outputs will differ and a benefit is that modern output is
used now.

The example test case covers the fields and values used by libguestfs
when using the https driver.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
tests/qemublocktest.c
tests/qemublocktestdata/jsontojson/curl-libguestfs-in.json [new file with mode: 0644]
tests/qemublocktestdata/jsontojson/curl-libguestfs-out.json [new file with mode: 0644]