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>
libvirt.tests: Add a test for disk startupPolicy testing

libvirt domain disk XML may has a startupPolicy element:
    <disk type='file' device='floppy'>
      <source file='xxx' startupPolicy='mandatory'/>
      <target dev='fda' bus='fdc'/>
    </disk>
The value may be mandatory, requisite or optional, which corresponds to
differet behavior when start domain. This test case aim to test the three
different values for CD-ROM and floppy disks.

Signed-off-by: Yanbing Du <ydu@redhat.com>
tests.migrate: Adjustments for migration parameters.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
Add test for net-update
Merge pull request #113 from kylazhang/net-update

Add test for net-update
Add PV related case for libguestfs
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>
libvirt.test: Fix bugs in macvtap test
1.Fix the way to edit the file on remote
2.Remove unnecessary session creation

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>