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.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.tests: add test cases for virsh blkdeviotune

Signed-off-by: Alex Jia <chuanchang.jia@gmail.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>
v2v.tests: Use PoolVolumeTest to create pool for converting remote vm.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
v2v.tests: Separate xen and vmware to support both in one run.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
tests.convert_libvirt: Fix parameter for options --network/--bridge.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
v2v.tests: Adjustment to support network and bridge options.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
v2v.tests: Adjustments for converting local image.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
snapshot_disk: Add pool volume snapshot cases

Current test is with snapshot disk in a created tmp dir, for support
pool volume testing with snapshot, create certain type pool and use
volume in the pool for snapshot testing.

Skip specific cases since upstream and rhel7 change.

Covered pool: "dir", "fs", "netfs", "iscsi", "logical" and "disk"

Signed-off-by: Wayne Sun <gsun@redhat.com>
virsh.start: adjust virsh.start to lxc.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
snapshot_par_cur: Add cases for missed option and negative testing

Add negative cases for invalid snapshotname and run command without
snapshot created first. Add positive case for '--name' option.

Signed-off-by: Wayne Sun <gsun@redhat.com>
snapshot_edit: Add support to handle create snapshot without description

Add new filter case "without_desc" under disk_snapshot, update edit cmd
and snap_xml_compare function to fit the change. Update using CmdResult
according to the snapshot_current function change.

Signed-off-by: Wayne Sun <gsun@redhat.com>
snapshot_edit: Add delete_desc cases

The delete_desc cases is for delete description after snapshot created
with description. Update snap_xml_compare function for check clone and
rename cases.

Signed-off-by: Wayne Sun <gsun@redhat.com>
libvirt.test: Fix problem in virsh iface test

1.Skip OSError when delete a bridge
2.Filter 'net_restart' cases because it's dangerous

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
libvirt.test: Fix a typo in qemu agent command test

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