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>
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>
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>
Merge pull request #212 from waynesun09/snapshot_disk_with_pool

snapshot_disk: Add pool volume snapshot cases
snapshot_disk: Add snapshot cfg xml check for delete testing

Check snapshot cfg xml file after done snapshot delete.

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

snapshot_disk: Add snapshot cfg xml check for delete testing
virsh.snapshot_disk: Raise NAError when we get a message about "not supported".

When we run test for virsh.snapshot_disk in RHEL6:
Compiled against library: libvirt 0.10.2
Using library: libvirt 0.10.2
Using API: QEMU 0.10.2
Running hypervisor: QEMU 0.12.1

We will get some FAILs and error message:
"live disk snapshot not supported with this QEMU binary"

In this case, we should raise an NAError rather than FailError.

We are testing libvirt in tp-libvirt, and libvirt works well in
this case, but qemu-kvm.0.12.1 does not support live snapshot. It
is out of our testing project, and it should be NAError.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
Merge pull request #237 from liyangfnst/iface_fix

libvirt.test: Fix problem in virsh iface test
network_bandwidth: make test work only when guest is using default network.

When we start a test with ./run, we will get a netdst = user in test script.
This will break network_bandwidth test.

And the test of portgroup is only applicable for interface of network type.

The original thought about this test is assuming guest using default network.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
address a indent error from inspector

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
libvirt.test: Modify add_ssl_spice_graphic func to add_graphic

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
libvirt.test: Fix hidden bug in domdisplay test

Befor test, check if domain has graphic device, if
no graphic device exists, add one device.

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