libvirt.tests: Add testcases for migration with copy-storage-inc/all.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
libvirt.tests: Add testcases for lvm type storage migration.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
libvirt.tests: Add abnormal testcases for storage migration.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
virsh.start: Add virsh_exec to init VirshSession.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
Merge pull request #198 from yangdongsheng/start

virsh.start: Add virsh_exec to init VirshSession.
virsh_attach_detach_disk.cfg: Resolve a conflict in options '--mode readonly' and '--shareable'.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
tests.migrate_copy_storage: Fix bugs.

 * LVM should be block device for domain.
 * New created vm should be cleaned up anyway.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
Merge pull request #202 from yangdongsheng/at_disk

virsh_attach_detach_disk.cfg: Resolve a conflict in options.
tests.migrate_speed: Expand test cases with verifying speed.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
snapshot_disk: Add snapshot_delete cases without '--metadata' option

External disk only snapshot is not supported with delete yet, but internal
snapshot delete is supported. Update test case and cfg to support testing
this.

Add filter 'delete_test' to cover 6 new delete cases, put exist cases
under 'no_delete'.

The original cases total is 27, now with 6 new delete cases, total will
be 33.

Fixed few lines with column length exceeds 80.

Signed-off-by: Wayne Sun <gsun@redhat.com>
snapshot_disk: Fix error cases for internal diskonly and external revert

Internal disk only snapshot will fail since commit d2e668e in libvirt
1.2.5, and external revert will fail since d410e6f in libvirt 1.2.3.

Following bugs is tracking for this:
https://bugzilla.redhat.com/show_bug.cgi?id=1071264
https://bugzilla.redhat.com/show_bug.cgi?id=1083345

Signed-off-by: John Ferlan <jferlan@redhat.com>
Signed-off-by: Wayne Sun <gsun@redhat.com>
libvirt.tests: A new test case for iface-bridge/iface-unbridge

Signed-off-by: Yanbing Du <ydu@redhat.com>
tests.migrate_speed: Adjustment for checking TestNAError.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
acl-tests: fix config files for all acl test cases that use vm name

We definitely shouldn't hardcode any name or config options in the
tests or tests configs unless there is no other way, and this is not
the case. Let's say that someone for some reason change the main_vm
name and suddenly a lot of acl tests are for unexpected reason broken.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Merge pull request #128 from will-Do/iface-bridge

libvirt.tests: A new test case for iface-bridge/iface-unbridge
svirt: add a variant to shutdown vm with virsh shutdown command.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
svirt: fix some bug in svirt.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
Merge pull request #204 from Antique/fix-acl-tests

acl-tests: fix config files for all acl test cases that use vm name
snapshot_create_as: Add fs-freeze to/for acl list

Using the --quiesce option requires the 'fs-freeze' acl/permission, so
add it to the action_id value. I tried adding it "just" to the quiesce
specific test to no avail seems the value in
virsh_shutdown: Using agent requires write acl

Need to add the "write" acl to the list since using the agent requires
it.  Like snapshot_create_as too bad there wasn't a way to add the acl
for just the agent subtest (I didn't see an easy way).