a41c76
From d2d22773873d6386f30f88a2d477c23a2fd534e2 Mon Sep 17 00:00:00 2001
a41c76
Message-Id: <d2d22773873d6386f30f88a2d477c23a2fd534e2@dist-git>
a41c76
From: Peter Krempa <pkrempa@redhat.com>
a41c76
Date: Sun, 26 Apr 2020 13:04:05 -0400
a41c76
Subject: [PATCH] qemumonitorjsontest: AddNetdev: Use real variant
a41c76
MIME-Version: 1.0
a41c76
Content-Type: text/plain; charset=UTF-8
a41c76
Content-Transfer-Encoding: 8bit
a41c76
a41c76
QEMU now formalized the arguments of netdev-add in the schema, so we
a41c76
must use a real type to pass the schema validation once the schema is
a41c76
updated.
a41c76
a41c76
The 'user' variant doesn't have any other mandatory fields.
a41c76
a41c76
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
a41c76
Reviewed-by: Ján Tomko <jtomko@redhat.com>
a41c76
a41c76
Required on 8.2.1 branch due to adding caps_5.0.0.x86_64.replies
a41c76
Prerequisite for https://bugzilla.redhat.com/1802592
a41c76
Signed-off-by: Laine Stump <laine@redhat.com>
a41c76
Message-Id: <20200426170415.18328-3-laine@redhat.com>
a41c76
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
a41c76
---
a41c76
 tests/qemumonitorjsontest.c | 2 +-
a41c76
 1 file changed, 1 insertion(+), 1 deletion(-)
a41c76
a41c76
diff --git a/tests/qemumonitorjsontest.c b/tests/qemumonitorjsontest.c
a41c76
index 2c696a2e8b..2fb72b827d 100644
a41c76
--- a/tests/qemumonitorjsontest.c
a41c76
+++ b/tests/qemumonitorjsontest.c
a41c76
@@ -1308,7 +1308,7 @@ GEN_TEST_FUNC(qemuMonitorJSONDump, "dummy_protocol", "elf",
a41c76
               true)
a41c76
 GEN_TEST_FUNC(qemuMonitorJSONGraphicsRelocate, VIR_DOMAIN_GRAPHICS_TYPE_SPICE,
a41c76
               "localhost", 12345, 12346, "certsubjectval")
a41c76
-GEN_TEST_FUNC(qemuMonitorJSONAddNetdev, "id=net0,type=test")
a41c76
+GEN_TEST_FUNC(qemuMonitorJSONAddNetdev, "id=net0,type=user")
a41c76
 GEN_TEST_FUNC(qemuMonitorJSONRemoveNetdev, "net0")
a41c76
 GEN_TEST_FUNC(qemuMonitorJSONDelDevice, "ide0")
a41c76
 GEN_TEST_FUNC(qemuMonitorJSONAddDevice, "some_dummy_devicestr")
a41c76
-- 
a41c76
2.26.2
a41c76