libvirt.tests: add new case into virsh send-key command

Signed-off-by: Alex Jia <chuanchang.jia@gmail.com>
virsh.emulatorpin: Add a negative case to test 'auto' placement

Signed-off-by: Yanbing Du <ydu@redhat.com>
dompmsuspend: Change VMPM to VMPMXML.

update this test according to latest change in libvirt_xml.vm_xml.

Signed-off-by: Hao Liu <hliu@redhat.com>
vol_clone_wipe: Fix dependence of scrub

1) Using an algorithm other than `zero` when doing `vol-wipe` needs `scrub`
package. This fix check the existence of `scrub`. If fails, it logs a warning
message and using `zero` algorithm instead.

2) Skip related test if libvirt don't support option --prealloc-metadata.

Signed-off-by: Hao Liu <hliu@redhat.com>
Using new method to setup iscsi device

The new method wrap dependency checking, iscsi target setup and login steps,
and set default values for all needed params.

Signed-off-by: Yanbing Du <ydu@redhat.com>
libvirt_scsi: Fix some bugs.

1) Use `EXAMPLE*` for disk device type.
2) Raise `TestNAError` when dependent `mkisofs` don't exists.
3) Cleanup image files after test.
4) Check partition first to skip before other disk image are
   created.

Signed-off-by: Hao Liu <hliu@redhat.com>
Merge pull request #274 from will-Do/emulatorpin

virsh.emulatorpin: Add a negative case to test 'auto' placement
Merge pull request #281 from Hao-Liu/fix_dompmsuspend

dompmsuspend: Change VMPM to VMPMXML.
Merge pull request #283 from Hao-Liu/fix_vol_wipe

vol_clone_wipe: Fix dependence of scrub
snapshot_create_as: Add "--quiesce" without unix channel negative case

Signed-off-by: Wayne Sun <gsun@redhat.com>
snapshot_create_as: Add reuse external diskonly negative case

When create diskonly snapshot with --reuse-external option fail,
the domain xml should remain not updated.

Signed-off-by: Wayne Sun <gsun@redhat.com>
snapshot_create_as: Add external memory snapshot compressing cases

Add test cases of config "snapshot_image_format" in qemu.conf before
do external system checkpoint snapshot.

Signed-off-by: Wayne Sun <gsun@redhat.com>
snapshot_create_as: Add test case for bug 872292

The "savevm command not found" log should not be found in libvirtd
log file after done snapshot, update test to cover this.

Signed-off-by: Wayne Sun <gsun@redhat.com>
Delete the sync step after libvirtd and qemu conf restore

The restore function will restart libvirtd, no need to use sync after.

Signed-off-by: Wayne Sun <gsun@redhat.com>
snapshot_create_as: Replace conf sync function

As utils_config deleted the sync function, replace it with utils_libvirtd
to restart libvirtd if needed.

Signed-off-by: Wayne Sun <gsun@redhat.com>
delete guest agent remove operation as there is no need
snapshot_create_as: Update utils_conf instance with set_string usage

The set_string function is for set string value with quote mark
in conf, which with customize result to avoid raw string in config
file.

Direct use attr function to simplify useage.

Signed-off-by: Wayne Sun <gsun@redhat.com>
Merge pull request #233 from waynesun09/quiesce_without_unix_channel

snapshot_create_as: Add more test cases
libvirt_pci_passthrough: only check parameters for the current case.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
Merge pull request #289 from Hao-Liu/fix_libvirt_scsi

libvirt_scsi: Fix some bugs.