libvirt.tests: Add volume application test module(part 1).

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
tp-libvirt: Add attach-disk action with created volume

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
libvirt.tests: Add unsafe option test for virsh.migrate.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
libvirt.tests: Add test module for timer management.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
libvirt.tests: Test setting of timer's present to no.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
libvirt.tests: Add stress relative cases for timer management.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
libvirt.tests: Add windows support for timer management.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
tp-libvirt: Add vm install action with created volume

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
virsh_start: Fix pause bug in cleanup.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
libvirt.test: Add '--update-cpu' test for dumpxml

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
Add test for secret-dumpxml
virsh_start: add cases for more options.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
libvirt.tests: A new test case for iface-edit command

Signed-off-by: Yanbing Du <ydu@redhat.com>
Modify for secret-list wrap changed in
Add virsh command testcase virsh_secret_list
libvirt.tests: Use load_stress in utils_test for test.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
libvirt.tests: Adjust testcases for timer test module.

  1.Block no_timer should not work under banned_timer because
    no timer is banned for test.
  2.In the four timers, only kvm-clock works.Other allowed timers
    are: pit, rtc and hypervclock
    (Leave it FAIL because RHEL6 manual does not point it out)

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
tp-libvirt: Add option(managedsave and snapshot) test for undefine

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

Fail #1: blockcopy.positive_test.raw_format
For the raw format, the code mades a special check/call to QemuImg to
get the information about the blockcopy created.  The setup of the
params[] to the initializer was incorrect using 'image_filename'
instead of 'image_name' and the path to the file without the extension.

Had to adjust how the file was created to ensure it was created with
an extension ".raw"; otherwise, the 'image_format' would seem to default
to qcow2 which would be appended onto the "image_file' name passed.

Because the creation was adjusted to add the extenstion we have to
remove it when doing the check call...

Fail #2: blockcopy.negative_test.timeout_check
It seems libvirt commit id '4c297728' has resolved what used to be an
expected failure. The test passes for me now.  The commit in question
deals with blockcopy failing "unexpectedly" which would happen when
the timeout was fired and "quit" would be set in the code. So modify
the expected failure code to check for the expected failure message of
Copy aborted.  Additionally, add a bandwidth argument to hopefully
avoid the possibility that the copy completes very quickly and the
the message "Now in mirroring phase" is provided.
pool_create: Adjust location of --file pool

As of commit id 'c5f6c685' in virt-install (v1.0.0), virt-install
will attempt to create a storage pool for ease of management of
volumes. Thus if the test was started with --install or by chance
an 'images' pool exists using get_data_dir(), then the attempt
to define/create this pool will fail since two pools cannot use
the same path.  Therefore, rather than use the data dir for our
test, let's just use 'tmp' dir and create an images pool there.