]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemumonitortestutils: Introduce qemuMonitorTestSkipDeprecatedValidation
authorPeter Krempa <pkrempa@redhat.com>
Wed, 29 Apr 2020 09:03:02 +0000 (11:03 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 20 May 2020 06:53:29 +0000 (08:53 +0200)
commit1ef3d0fc979d11138d28e87e3639065360e96453
tree347dfc5d9df8e4b43a51fe0c4ce566dce51bed92
parent7014d2ef14c93009f3277f508674bec4303f71e1
qemumonitortestutils: Introduce qemuMonitorTestSkipDeprecatedValidation

Upcoming patches will add validation which rejects objects with the
'deprecated' feature in the QMP schema. To support tests which deal with
legacy properties in case when a command or argument is marked as
deprecated or removed by qemu qemuMonitorTestSkipDeprecatedValidation
will allow configuring the tests to ignore such errors.

In case of commands/features which are not yet replaced, the
'allowRemoved' bool should not be set to provide a hard notification
once qemu drops the command.

Note that at this point 'allowRemoved' only includes whole commands, but
not specific properties.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
tests/qemumonitortestutils.c
tests/qemumonitortestutils.h