libvirt.test: Add 'bridge' type interface test for iface

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
libvirt.test: Add more testcases for iface test

Add some case for nonexist interface test, including
protocol test, stp test

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
libvirt.test: Add 'vlan' and 'bond' type test for iface

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
tests.migrate: Adjustments for migration parameters.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
libvirt.test: Add test for virsh detach-device

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
Merge pull request #216 from liyangfnst/detach_device

libvirt.test: Add test for detach-device
libvirt-tests: Add test case for nodesuspend

Test command: virsh nodesuspend <target> <duration>

This command will make host suspend or hibernate, running tests on testing
grid may cause unexpected behavior.

This tests only work when test runner setup a remote host (physical or
virtual) with testing version of libvirt daemon running. After that change
the remote_xxx parameters in configuration file to corresponding value.

Signed-off-by: Hao Liu <hliu@redhat.com>
Fix virsh nodesuspend test case.

* Use more straight forward debugging messages and exception messages.
* Added missed 'raise' keywords. When trying to raise an exception, this will
  make cases false PASS when that hosts is timeout when shutting down.
* Extend upper_tolerance of down time checking from 8 to 15. Apprently some
  hosts will take longer to recover from sleeping.

Signed-off-by: Hao Liu <hliu@redhat.com>
Also check LoginProcessTerminatedError

When creating a remote virsh session to another host, there is a
chance that the remote host is unreachable. In this case we expect
a SKIP rather than an FAIL.

Signed-off-by: Hao Liu <hliu@redhat.com>
nodesuspend: Avoid common remote* parameters

Change common remote* params to nodesuspend_remote* to avoid misuse of
this case by any chances, which might cause catastrophic result.

Signed-off-by: Hao Liu <hliu@redhat.com>
libvirt.tests: add new negative case into virsh domstate

Signed-off-by: Alex Jia <chuanchang.jia@gmail.com>
Merge pull request #56 from Hao-Liu/nodesuspend

libvirt-tests: Add test case for nodesuspend
libvirt.test: Add attach interface to VM case and fix some problems

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
Add virsh qemu-monitor-command test cases

The virsh qemu-monitor-command is for send QEMU monitor command directly
from virsh, which benefit debugging for devel or well knowledged user.

The qemu-* commands are not with support in RHEL products, so the testing
strategy is mainly focus on return status and libvirtd status after
command been executed.

Signed-off-by: Wayne Sun <gsun@redhat.com>
Add virsh qemu-agent-command test cases

The virsh qemu-agent-command is for send QEMU agent command directly
from virsh, which benefit debugging for devel or well knowledged user.

The qemu-* commands are not with support in RHEL products, so the testing
strategy is mainly focus on return status and libvirtd status after
command been executed.

Signed-off-by: Wayne Sun <gsun@redhat.com>
Add virsh qemu-attach test cases

The virsh qemu-attach is for attach QEMU process from virsh, the command
is requires the use of libvirt-qemu.so, and is therefore explicitly
unsupported by upstream libvirt folks. The whole idea of qemu-attach is
a development crutch and not a highly reliable mechanism.

So the testing strategy is mainly focus on libvirtd status after
command been executed.

Use qemu_vm.VM to init qemu process and set vm_type as "default" in cfg.

Check more details in bug:
https://bugzilla.redhat.com/show_bug.cgi?id=1063837
https://bugzilla.redhat.com/show_bug.cgi?id=995312
https://bugzilla.redhat.com/show_bug.cgi?id=1010617

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

Add qemu-* command test cases
Merge pull request #218 from yumingfei/migration_parameters

tests.migrate: Adjustments for migration parameters.
Merge pull request #156 from liyangfnst/iface_bri

libvirt.test: Add 'bridge' type interface test for iface
qemu_monitor_command: Add two more negative cases

Add a negative case for cover unknow cmd error, and another one
for invalid qmp command.

Signed-off-by: Wayne Sun <gsun@redhat.com>