mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
tests: qemucapabilities: Test commands used to query capabilities
Use qemuMonitorTestNewFromFileFull which allows to test commands used along with providing replies. This has two advantages: 1) It's easier to see which command was used when looking at the files 2) We check that the used commands are actually in the correct order Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: John Ferlan <jferlan@redhat.com>
This commit is contained in:
@@ -1,16 +1,6 @@
|
||||
{
|
||||
"QMP": {
|
||||
"version": {
|
||||
"qemu": {
|
||||
"micro": 1,
|
||||
"minor": 1,
|
||||
"major": 2
|
||||
},
|
||||
"package": ""
|
||||
},
|
||||
"capabilities": [
|
||||
]
|
||||
}
|
||||
"execute": "qmp_capabilities",
|
||||
"id": "libvirt-1"
|
||||
}
|
||||
|
||||
{
|
||||
@@ -19,6 +9,11 @@
|
||||
"id": "libvirt-1"
|
||||
}
|
||||
|
||||
{
|
||||
"execute": "query-version",
|
||||
"id": "libvirt-2"
|
||||
}
|
||||
|
||||
{
|
||||
"return": {
|
||||
"qemu": {
|
||||
@@ -31,6 +26,11 @@
|
||||
"id": "libvirt-2"
|
||||
}
|
||||
|
||||
{
|
||||
"execute": "query-target",
|
||||
"id": "libvirt-3"
|
||||
}
|
||||
|
||||
{
|
||||
"return": {
|
||||
"arch": "x86_64"
|
||||
@@ -38,6 +38,11 @@
|
||||
"id": "libvirt-3"
|
||||
}
|
||||
|
||||
{
|
||||
"execute": "query-commands",
|
||||
"id": "libvirt-4"
|
||||
}
|
||||
|
||||
{
|
||||
"return": [
|
||||
{
|
||||
@@ -374,6 +379,15 @@
|
||||
"id": "libvirt-4"
|
||||
}
|
||||
|
||||
{
|
||||
"execute": "add-fd",
|
||||
"arguments": {
|
||||
"fdset-id": 0,
|
||||
"opaque": "/dev/null"
|
||||
},
|
||||
"id": "libvirt-5"
|
||||
}
|
||||
|
||||
{
|
||||
"return": {
|
||||
"fd": 13,
|
||||
@@ -382,6 +396,14 @@
|
||||
"id": "libvirt-5"
|
||||
}
|
||||
|
||||
{
|
||||
"execute": "block-commit",
|
||||
"arguments": {
|
||||
"device": "bogus"
|
||||
},
|
||||
"id": "libvirt-6"
|
||||
}
|
||||
|
||||
{
|
||||
"id": "libvirt-6",
|
||||
"error": {
|
||||
@@ -390,6 +412,11 @@
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
"execute": "query-kvm",
|
||||
"id": "libvirt-7"
|
||||
}
|
||||
|
||||
{
|
||||
"return": {
|
||||
"enabled": true,
|
||||
@@ -398,6 +425,11 @@
|
||||
"id": "libvirt-7"
|
||||
}
|
||||
|
||||
{
|
||||
"execute": "query-events",
|
||||
"id": "libvirt-8"
|
||||
}
|
||||
|
||||
{
|
||||
"return": [
|
||||
{
|
||||
@@ -500,6 +532,11 @@
|
||||
"id": "libvirt-8"
|
||||
}
|
||||
|
||||
{
|
||||
"execute": "qom-list-types",
|
||||
"id": "libvirt-9"
|
||||
}
|
||||
|
||||
{
|
||||
"return": [
|
||||
{
|
||||
@@ -1283,6 +1320,14 @@
|
||||
"id": "libvirt-9"
|
||||
}
|
||||
|
||||
{
|
||||
"execute": "device-list-properties",
|
||||
"arguments": {
|
||||
"typename": "virtio-blk-pci"
|
||||
},
|
||||
"id": "libvirt-10"
|
||||
}
|
||||
|
||||
{
|
||||
"return": [
|
||||
{
|
||||
@@ -1393,6 +1438,14 @@
|
||||
"id": "libvirt-10"
|
||||
}
|
||||
|
||||
{
|
||||
"execute": "device-list-properties",
|
||||
"arguments": {
|
||||
"typename": "virtio-net-pci"
|
||||
},
|
||||
"id": "libvirt-11"
|
||||
}
|
||||
|
||||
{
|
||||
"return": [
|
||||
{
|
||||
@@ -1555,6 +1608,14 @@
|
||||
"id": "libvirt-11"
|
||||
}
|
||||
|
||||
{
|
||||
"execute": "device-list-properties",
|
||||
"arguments": {
|
||||
"typename": "virtio-scsi-pci"
|
||||
},
|
||||
"id": "libvirt-12"
|
||||
}
|
||||
|
||||
{
|
||||
"return": [
|
||||
{
|
||||
@@ -1625,6 +1686,14 @@
|
||||
"id": "libvirt-12"
|
||||
}
|
||||
|
||||
{
|
||||
"execute": "device-list-properties",
|
||||
"arguments": {
|
||||
"typename": "virtio-net-ccw"
|
||||
},
|
||||
"id": "libvirt-13"
|
||||
}
|
||||
|
||||
{
|
||||
"id": "libvirt-13",
|
||||
"error": {
|
||||
@@ -1633,6 +1702,14 @@
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
"execute": "device-list-properties",
|
||||
"arguments": {
|
||||
"typename": "virtio-scsi-ccw"
|
||||
},
|
||||
"id": "libvirt-14"
|
||||
}
|
||||
|
||||
{
|
||||
"id": "libvirt-14",
|
||||
"error": {
|
||||
@@ -1641,6 +1718,14 @@
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
"execute": "device-list-properties",
|
||||
"arguments": {
|
||||
"typename": "virtio-net-s390"
|
||||
},
|
||||
"id": "libvirt-15"
|
||||
}
|
||||
|
||||
{
|
||||
"id": "libvirt-15",
|
||||
"error": {
|
||||
@@ -1649,6 +1734,14 @@
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
"execute": "device-list-properties",
|
||||
"arguments": {
|
||||
"typename": "pci-assign"
|
||||
},
|
||||
"id": "libvirt-16"
|
||||
}
|
||||
|
||||
{
|
||||
"id": "libvirt-16",
|
||||
"error": {
|
||||
@@ -1657,6 +1750,14 @@
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
"execute": "device-list-properties",
|
||||
"arguments": {
|
||||
"typename": "kvm-pci-assign"
|
||||
},
|
||||
"id": "libvirt-17"
|
||||
}
|
||||
|
||||
{
|
||||
"return": [
|
||||
{
|
||||
@@ -1703,6 +1804,14 @@
|
||||
"id": "libvirt-17"
|
||||
}
|
||||
|
||||
{
|
||||
"execute": "device-list-properties",
|
||||
"arguments": {
|
||||
"typename": "vfio-pci"
|
||||
},
|
||||
"id": "libvirt-18"
|
||||
}
|
||||
|
||||
{
|
||||
"return": [
|
||||
{
|
||||
@@ -1745,6 +1854,14 @@
|
||||
"id": "libvirt-18"
|
||||
}
|
||||
|
||||
{
|
||||
"execute": "device-list-properties",
|
||||
"arguments": {
|
||||
"typename": "scsi-disk"
|
||||
},
|
||||
"id": "libvirt-19"
|
||||
}
|
||||
|
||||
{
|
||||
"return": [
|
||||
{
|
||||
@@ -1831,6 +1948,14 @@
|
||||
"id": "libvirt-19"
|
||||
}
|
||||
|
||||
{
|
||||
"execute": "device-list-properties",
|
||||
"arguments": {
|
||||
"typename": "ide-drive"
|
||||
},
|
||||
"id": "libvirt-20"
|
||||
}
|
||||
|
||||
{
|
||||
"return": [
|
||||
{
|
||||
@@ -1885,6 +2010,14 @@
|
||||
"id": "libvirt-20"
|
||||
}
|
||||
|
||||
{
|
||||
"execute": "device-list-properties",
|
||||
"arguments": {
|
||||
"typename": "PIIX4_PM"
|
||||
},
|
||||
"id": "libvirt-21"
|
||||
}
|
||||
|
||||
{
|
||||
"return": [
|
||||
{
|
||||
@@ -1935,6 +2068,14 @@
|
||||
"id": "libvirt-21"
|
||||
}
|
||||
|
||||
{
|
||||
"execute": "device-list-properties",
|
||||
"arguments": {
|
||||
"typename": "usb-redir"
|
||||
},
|
||||
"id": "libvirt-22"
|
||||
}
|
||||
|
||||
{
|
||||
"return": [
|
||||
{
|
||||
@@ -1973,6 +2114,14 @@
|
||||
"id": "libvirt-22"
|
||||
}
|
||||
|
||||
{
|
||||
"execute": "device-list-properties",
|
||||
"arguments": {
|
||||
"typename": "usb-host"
|
||||
},
|
||||
"id": "libvirt-23"
|
||||
}
|
||||
|
||||
{
|
||||
"return": [
|
||||
{
|
||||
@@ -2035,6 +2184,14 @@
|
||||
"id": "libvirt-23"
|
||||
}
|
||||
|
||||
{
|
||||
"execute": "device-list-properties",
|
||||
"arguments": {
|
||||
"typename": "scsi-generic"
|
||||
},
|
||||
"id": "libvirt-24"
|
||||
}
|
||||
|
||||
{
|
||||
"return": [
|
||||
{
|
||||
@@ -2061,6 +2218,14 @@
|
||||
"id": "libvirt-24"
|
||||
}
|
||||
|
||||
{
|
||||
"execute": "device-list-properties",
|
||||
"arguments": {
|
||||
"typename": "i440FX-pcihost"
|
||||
},
|
||||
"id": "libvirt-25"
|
||||
}
|
||||
|
||||
{
|
||||
"return": [
|
||||
{
|
||||
@@ -2099,6 +2264,14 @@
|
||||
"id": "libvirt-25"
|
||||
}
|
||||
|
||||
{
|
||||
"execute": "device-list-properties",
|
||||
"arguments": {
|
||||
"typename": "q35-pcihost"
|
||||
},
|
||||
"id": "libvirt-26"
|
||||
}
|
||||
|
||||
{
|
||||
"return": [
|
||||
{
|
||||
@@ -2149,6 +2322,14 @@
|
||||
"id": "libvirt-26"
|
||||
}
|
||||
|
||||
{
|
||||
"execute": "device-list-properties",
|
||||
"arguments": {
|
||||
"typename": "usb-storage"
|
||||
},
|
||||
"id": "libvirt-27"
|
||||
}
|
||||
|
||||
{
|
||||
"return": [
|
||||
{
|
||||
@@ -2203,6 +2384,14 @@
|
||||
"id": "libvirt-27"
|
||||
}
|
||||
|
||||
{
|
||||
"execute": "device-list-properties",
|
||||
"arguments": {
|
||||
"typename": "kvm-pit"
|
||||
},
|
||||
"id": "libvirt-28"
|
||||
}
|
||||
|
||||
{
|
||||
"return": [
|
||||
{
|
||||
@@ -2217,6 +2406,14 @@
|
||||
"id": "libvirt-28"
|
||||
}
|
||||
|
||||
{
|
||||
"execute": "device-list-properties",
|
||||
"arguments": {
|
||||
"typename": "VGA"
|
||||
},
|
||||
"id": "libvirt-29"
|
||||
}
|
||||
|
||||
{
|
||||
"return": [
|
||||
{
|
||||
@@ -2251,6 +2448,14 @@
|
||||
"id": "libvirt-29"
|
||||
}
|
||||
|
||||
{
|
||||
"execute": "device-list-properties",
|
||||
"arguments": {
|
||||
"typename": "vmware-svga"
|
||||
},
|
||||
"id": "libvirt-30"
|
||||
}
|
||||
|
||||
{
|
||||
"return": [
|
||||
{
|
||||
@@ -2281,6 +2486,14 @@
|
||||
"id": "libvirt-30"
|
||||
}
|
||||
|
||||
{
|
||||
"execute": "device-list-properties",
|
||||
"arguments": {
|
||||
"typename": "qxl"
|
||||
},
|
||||
"id": "libvirt-31"
|
||||
}
|
||||
|
||||
{
|
||||
"return": [
|
||||
{
|
||||
@@ -2351,6 +2564,14 @@
|
||||
"id": "libvirt-31"
|
||||
}
|
||||
|
||||
{
|
||||
"execute": "device-list-properties",
|
||||
"arguments": {
|
||||
"typename": "ICH9-LPC"
|
||||
},
|
||||
"id": "libvirt-32"
|
||||
}
|
||||
|
||||
{
|
||||
"return": [
|
||||
{
|
||||
@@ -2405,6 +2626,14 @@
|
||||
"id": "libvirt-32"
|
||||
}
|
||||
|
||||
{
|
||||
"execute": "device-list-properties",
|
||||
"arguments": {
|
||||
"typename": "virtio-balloon-pci"
|
||||
},
|
||||
"id": "libvirt-33"
|
||||
}
|
||||
|
||||
{
|
||||
"return": [
|
||||
{
|
||||
@@ -2455,6 +2684,14 @@
|
||||
"id": "libvirt-33"
|
||||
}
|
||||
|
||||
{
|
||||
"execute": "device-list-properties",
|
||||
"arguments": {
|
||||
"typename": "virtio-balloon-ccw"
|
||||
},
|
||||
"id": "libvirt-34"
|
||||
}
|
||||
|
||||
{
|
||||
"id": "libvirt-34",
|
||||
"error": {
|
||||
@@ -2463,12 +2700,28 @@
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
"execute": "device-list-properties",
|
||||
"arguments": {
|
||||
"typename": "virtio-balloon-device"
|
||||
},
|
||||
"id": "libvirt-35"
|
||||
}
|
||||
|
||||
{
|
||||
"return": [
|
||||
],
|
||||
"id": "libvirt-35"
|
||||
}
|
||||
|
||||
{
|
||||
"execute": "device-list-properties",
|
||||
"arguments": {
|
||||
"typename": "nec-usb-xhci"
|
||||
},
|
||||
"id": "libvirt-36"
|
||||
}
|
||||
|
||||
{
|
||||
"return": [
|
||||
{
|
||||
@@ -2523,6 +2776,14 @@
|
||||
"id": "libvirt-36"
|
||||
}
|
||||
|
||||
{
|
||||
"execute": "device-list-properties",
|
||||
"arguments": {
|
||||
"typename": "mch"
|
||||
},
|
||||
"id": "libvirt-37"
|
||||
}
|
||||
|
||||
{
|
||||
"return": [
|
||||
{
|
||||
@@ -2549,6 +2810,11 @@
|
||||
"id": "libvirt-37"
|
||||
}
|
||||
|
||||
{
|
||||
"execute": "query-machines",
|
||||
"id": "libvirt-38"
|
||||
}
|
||||
|
||||
{
|
||||
"return": [
|
||||
{
|
||||
@@ -2654,6 +2920,11 @@
|
||||
"id": "libvirt-38"
|
||||
}
|
||||
|
||||
{
|
||||
"execute": "query-cpu-definitions",
|
||||
"id": "libvirt-39"
|
||||
}
|
||||
|
||||
{
|
||||
"return": [
|
||||
{
|
||||
@@ -2735,6 +3006,11 @@
|
||||
"id": "libvirt-39"
|
||||
}
|
||||
|
||||
{
|
||||
"execute": "query-tpm-models",
|
||||
"id": "libvirt-40"
|
||||
}
|
||||
|
||||
{
|
||||
"return": [
|
||||
"tpm-tis"
|
||||
@@ -2742,6 +3018,11 @@
|
||||
"id": "libvirt-40"
|
||||
}
|
||||
|
||||
{
|
||||
"execute": "query-tpm-types",
|
||||
"id": "libvirt-41"
|
||||
}
|
||||
|
||||
{
|
||||
"return": [
|
||||
"passthrough"
|
||||
@@ -2749,6 +3030,11 @@
|
||||
"id": "libvirt-41"
|
||||
}
|
||||
|
||||
{
|
||||
"execute": "query-command-line-options",
|
||||
"id": "libvirt-42"
|
||||
}
|
||||
|
||||
{
|
||||
"return": [
|
||||
{
|
||||
@@ -3609,6 +3895,11 @@
|
||||
"id": "libvirt-42"
|
||||
}
|
||||
|
||||
{
|
||||
"execute": "query-migrate-capabilities",
|
||||
"id": "libvirt-43"
|
||||
}
|
||||
|
||||
{
|
||||
"return": [
|
||||
{
|
||||
@@ -3631,12 +3922,22 @@
|
||||
"id": "libvirt-43"
|
||||
}
|
||||
|
||||
{
|
||||
"execute": "qmp_capabilities",
|
||||
"id": "libvirt-1"
|
||||
}
|
||||
|
||||
{
|
||||
"return": {
|
||||
},
|
||||
"id": "libvirt-1"
|
||||
}
|
||||
|
||||
{
|
||||
"execute": "query-cpu-definitions",
|
||||
"id": "libvirt-2"
|
||||
}
|
||||
|
||||
{
|
||||
"return": [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user