render / rpms / libvirt

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