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.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 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 #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_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
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>
Add tests for virt-clone command.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
Add test for virt-what command.

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