[PATCH v2 12/12] [DON'T PUSH] Force-check all configs with latest capabilities

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hack the qemuxml2argvtest to force-validate everything with latest
capabilities. The result is expected:

190) QEMU XML-2-ARGV disk-network-tlsx509-vxhs.x86_64-5.0.0            ... failed to validate -blockdev '{"driver":"vxhs","tls-creds":"objlibvirt-3-storage_tls0","vdisk-id":"eb90327c-8302-4725-9e1b-4e85ed4dc251","server":{"host":"192.168.0.1","port":"9999"},"node-name":"libvirt-3-storage","cache":{"direct":true,"no-flush":false},"auto-read-only":true,"discard":"unmap"}' against QAPI schema: {
   ERROR: variant 'vxhs' for discriminator 'driver' not found

FAILED
1036) QEMU XML-2-ARGV launch-security-sev.x86_64-2.12.0                 ... failed to validate -object '{"qom-type":"sev-guest","id":"sev0","cbitpos":47,"reduced-phys-bits":1,"policy":1,"dh-cert-file":"/tmp/lib/domain--1-QEMUGuest1/dh_cert.base64","session-file":"/tmp/lib/domain--1-QEMUGuest1/session.base64"}' against QAPI schema: {
   ERROR: variant 'sev-guest' for discriminator 'qom-type' not found

FAILED
1037) QEMU XML-2-ARGV launch-security-sev-missing-platform-info.x86_64-2.12.0 ... failed to validate -object '{"qom-type":"sev-guest","id":"sev0","cbitpos":47,"reduced-phys-bits":1,"policy":1,"dh-cert-file":"/tmp/lib/domain--1-QEMUGuest1/dh_cert.base64","session-file":"/tmp/lib/domain--1-QEMUGuest1/session.base64"}' against QAPI schema: {
   ERROR: variant 'sev-guest' for discriminator 'qom-type' not found

FAILED

'vxhs' was deprecated/removed and is also not an '-object' and
'sev-guest' was not enabled on the box I used for generating the
capabilities.
---
 tests/qemuxml2argvtest.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/qemuxml2argvtest.c b/tests/qemuxml2argvtest.c
index a5e40c218a..1c4ba16bbf 100644
--- a/tests/qemuxml2argvtest.c
+++ b/tests/qemuxml2argvtest.c
@@ -529,8 +529,8 @@ testCompareXMLToArgvValidateSchema(virQEMUDriverPtr drv,
     bool netdevQAPIfied = false;
     bool objectQAPIfied = false;

-    /* comment out with line comment to enable schema checking for non _CAPS tests
-    if (!info->schemafile)
+//    /* comment out with line comment to enable schema checking for non _CAPS tests
+//    if (!info->schemafile)
         info->schemafile =  testQemuGetLatestCapsForArch(virArchToString(info->arch), "replies");
     // */

-- 
2.29.2




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux