]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemumonitorjsontest: AddNetdev: Use real variant
authorPeter Krempa <pkrempa@redhat.com>
Wed, 1 Apr 2020 10:24:45 +0000 (12:24 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 3 Apr 2020 07:36:20 +0000 (09:36 +0200)
QEMU now formalized the arguments of netdev-add in the schema, so we
must use a real type to pass the schema validation once the schema is
updated.

The 'user' variant doesn't have any other mandatory fields.

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

index fea95ed7c065bdba04f1ba7290a937e68a7a2513..615bc8c102478f10ae7bf460483b3049c1f61a2a 100644 (file)
@@ -1308,7 +1308,7 @@ GEN_TEST_FUNC(qemuMonitorJSONDump, "dummy_protocol", "elf",
               true)
 GEN_TEST_FUNC(qemuMonitorJSONGraphicsRelocate, VIR_DOMAIN_GRAPHICS_TYPE_SPICE,
               "localhost", 12345, 12346, "certsubjectval")
-GEN_TEST_FUNC(qemuMonitorJSONAddNetdev, "id=net0,type=test")
+GEN_TEST_FUNC(qemuMonitorJSONAddNetdev, "id=net0,type=user")
 GEN_TEST_FUNC(qemuMonitorJSONRemoveNetdev, "net0")
 GEN_TEST_FUNC(qemuMonitorJSONDelDevice, "ide0")
 GEN_TEST_FUNC(qemuMonitorJSONAddDevice, "some_dummy_devicestr")