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>
Add PV related case for libguestfs
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>
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>
libvirt.test: Fix a typo in qemu agent command test

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
Merge pull request #238 from liyangfnst/agent_fix

libvirt.test: Fix a typo in qemu agent command test
Fix a typo of case name
Merge pull request #223 from vanbogithub/bfan-dev

Add PV related case for libguestfs
Merge pull request #188 from liyangfnst/macvtap_fix

libvirt.test: Fix bugs in macvtap test
Merge pull request #162 from will-Do/startupPolicy

libvirt.tests: Add a test for disk startupPolicy testing
Merge pull request #212 from waynesun09/snapshot_disk_with_pool

snapshot_disk: Add pool volume snapshot cases
snapshot_create_as: Add reuse external diskonly negative case

When create diskonly snapshot with --reuse-external option fail,
the domain xml should remain not updated.

Signed-off-by: Wayne Sun <gsun@redhat.com>