[PATCH 29/30] qemublocktest: Add JSON->JSON test cases for block device backends

Ján Tomko jtomko at redhat.com
Fri Mar 13 06:07:51 UTC 2020


On a Monday in 2020, Peter Krempa wrote:
>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 at redhat.com>
>---
> tests/qemublocktest.c                         | 65 +++++++++++++++++++
> .../jsontojson/curl-libguestfs-in.json        |  1 +
> .../jsontojson/curl-libguestfs-out.json       |  9 +++
> 3 files changed, 75 insertions(+)
> create mode 100644 tests/qemublocktestdata/jsontojson/curl-libguestfs-in.json
> create mode 100644 tests/qemublocktestdata/jsontojson/curl-libguestfs-out.json
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20200313/44f450df/attachment-0001.sig>


More information about the libvir-list mailing list