qemu-server/test
Stefan Reiter 0a13e08ec2 refactor: create QemuServer::Monitor for high-level QMP access
QMP and monitor helpers are moved from QemuServer.pm.

By using only vm_running_locally instead of check_running, a cyclic
dependency to QemuConfig is avoided. This also means that the $nocheck
parameter serves no more purpose, and has thus been removed along with
vm_mon_cmd_nocheck.

Care has been taken to avoid errors resulting from this, and
occasionally a manual check for a VM's existance inserted on the
callsite.

Methods have been renamed to avoid redundant naming:
* vm_qmp_command -> qmp_cmd
* vm_mon_cmd -> mon_cmd
* vm_human_monitor_command -> hmp_cmd

mon_cmd is exported since it has many users. This patch also changes all
non-package users of vm_qmp_command to use the mon_cmd helper. Includes
mocking for tests.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
2019-11-20 16:29:23 +01:00
..
cfg2cmd followup: adding qxl max_outputs breaks live-migration/restore 2019-11-20 15:33:48 +01:00
ovf_manifests Add tests for parse_ovf function 2017-09-25 13:31:55 +02:00
snapshot-expected add new tests for 'runningmachine' and rollback 2018-09-17 15:49:31 +02:00
snapshot-input add new tests for 'runningmachine' and rollback 2018-09-17 15:49:31 +02:00
Makefile add tests for qemu_img_convert 2019-10-17 13:57:21 +02:00
run_config2command_tests.pl test: cfg2cmd: do NOT sort expected/actual commands 2019-10-09 08:08:24 +02:00
run_ovf_tests.pl Add tests for parse_ovf function 2017-09-25 13:31:55 +02:00
run_pci_addr_checks.pl move qemu-configs to own directory 2019-09-24 18:59:35 +02:00
run_qemu_img_convert_tests.pl fix #2395: refactor qemu_img_convert to accept files as source 2019-10-17 13:57:21 +02:00
run_snapshot_tests.pl tests: exit with -1 in case of failures 2017-05-17 13:58:18 +02:00
snapshot-test.pm refactor: create QemuServer::Monitor for high-level QMP access 2019-11-20 16:29:23 +01:00
test_get_replicatable_volumes.pl add regression tests for get_replicatable_volumes 2017-06-14 07:02:43 +02:00
test.vmdk fix #2395: refactor qemu_img_convert to accept files as source 2019-10-17 13:57:21 +02:00