mirror of
https://github.com/libvirt/libvirt.git
synced 2026-08-13 06:34:42 -05:00
testutilsqemuschema: Add template checker for schema entries
We'll need to match that a certain part of the qemu schema hasn't grown new properties unexpectedly. Add a helper which matches an 'object' QMP schema entry against a template and reports errors if expected types don't match or new entries are added. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
This commit is contained in:
@@ -37,6 +37,11 @@ testQEMUSchemaValidateCommand(const char *command,
|
||||
bool allowRemoved,
|
||||
virBufferPtr debug);
|
||||
|
||||
int
|
||||
testQEMUSchemaEntryMatchTemplate(virJSONValuePtr schemaentry,
|
||||
...);
|
||||
|
||||
|
||||
virJSONValuePtr
|
||||
testQEMUSchemaGetLatest(const char* arch);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user