libvirt.tests: Add a case for iscsi disk hotplug testing

Signed-off-by: Yanbing Du <ydu@redhat.com>
blockcommit: Add commit base as middle snap cases

Add test case with base as middle snap and fix lines exceed 80

Signed-off-by: Wayne Sun <gsun@redhat.com>
virsh.dump: Add a negative case and typo fix

Signed-off-by: Yanbing Du <ydu@redhat.com>
virsh.dump: Add tests for including/excluding KVM guest OS memory

Signed-off-by: Yanbing Du <ydu@redhat.com>
libvirt.tests: add new case into virsh send-key command

Signed-off-by: Alex Jia <chuanchang.jia@gmail.com>
Add new cfg and py file for misc case
Add 5 cases for misc test
virsh.capabilities: Check power management

1) Add checking for power management support again result of
   `pm-is-supported`
2) Rewrite all XML parsing using libvirt_xml module.

Signed-off-by: Hao Liu <hliu@redhat.com>
libguestfs.tests: Recover to vdx if listed disk is virtio.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
libguestfs.tests: Make vm is down before testing.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
guestfish.tests: Fix wrong vm setting for cloned vm.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
libguestfs.tests: Check only volume name in vm.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
add test for virt-xml-validate

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>

virt_xml_validate: fix an spelling error in cfg and provide an interface for other schemas.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
Add test for virt-top.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>

virt_top: remove an unused variable.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
libvirt.test: Fix a bug for attach-device

In old libvirt version, '--config' and '--persistent'
cannot be used together. and we'd better test them
separately.

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
libvirt.test: Modify target_uri param to use remote_ip

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
dompmsuspend: Add VM S3/S4 enable/disable test

1) Test enable and disable VM's S3/S4 capabilities in pm tag.
2) Update test case to check standard error message.
3) Activate a swap partition if the VM don't have one when testing
   S4.
4) Remove unneeded check of pm-utils installation.

Signed-off-by: Hao Liu <hliu@redhat.com>
libvirt.tests: Fix missed configurations.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
virsh.emulatorpin: Add a negative case to test 'auto' placement

Signed-off-by: Yanbing Du <ydu@redhat.com>
libvirt.test: Skip test if current large than max vcpu

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>