tests/test-qmp-cmds: Simplify test data setup
commit3d16042c9208c80b984b65cf90d1738a4c295bcc
authorMarkus Armbruster <armbru@redhat.com>
Tue, 17 Mar 2020 11:54:32 +0000 (17 12:54 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Tue, 17 Mar 2020 18:58:34 +0000 (17 19:58 +0100)
treefab0bff1d997f125e2c92ceaa4d0d6d03c67e427
parentef9f5f0d59471dbd5c0764fec67c982d95f4de20
tests/test-qmp-cmds: Simplify test data setup

Building requests with qdict_put() & friends is tedious to write and
hard to read.  Parse them from string literals with
qdict_from_vjsonf_nofail() instead.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20200317115459.31821-8-armbru@redhat.com>
tests/test-qmp-cmds.c