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>
libvirt.tests: Add a case for iscsi disk hotplug testing

Signed-off-by: Yanbing Du <ydu@redhat.com>
virsh.undefine: adapt undefine to lxc test.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
virsh.dumpxml: adapt virsh.dumpxml to lxc test.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
virsh.edit: adapt virsh.edit to lxc test.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
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.tests: add test cases for virsh blkdeviotune

Signed-off-by: Alex Jia <chuanchang.jia@gmail.com>
libvirt.test: Add attach interface to VM case and fix some problems

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