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>
Add multiple vms disk error_policy test cases.
Change unhotplug to coldplug.
Test shableable block disk on 2 domains.
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>
libvirt.test: Add abnormal resource test for some commands

These testcases test if commands executed succeed when
resource becomes to abnormal, like lack disk, cpu disable.

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 some more cases for abnormal resource test

1.Add virsh snapshot-create and virsh dump command test
2.Add memory_lack, disk_lack, cpu_busy, twice_execute test type

Signed-off-by: Li Yang <liyang.fnst@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 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
Fix pool related cases to recover selinux state.

This commit is base on a virt-test change to recover selinux state
after creating an NFS pool. Besides this change, this commit also
fixed a few bugs.
1) Stop virsh.domblkerror cleanup entire temp directory.
2) Clean virsh.vol_create_from and virsh.vol_download_upload file.
3) Create the file before chmod in virsh.vol_download_upload to
   prevent error.

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