dac_nfs_disk: Add test cases for domain vol on netfs pool

Test start domain with netfs pool vol, while netfs server exportfs
with root_squash, no_root_squash and ro options.

The test scenarios including:
1. ro: domain will fail to start with nfs vol.
2. no_root_squash: start domain depends on the nfs file ownership,
   user, group and dynamic_ownership option in qemu.conf.
3. root_squash: start domain depends on the nfs file ownership,
   user and group option in qemu.conf.

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

s/successed/succeeded/

Signed-off-by: Wayne Sun <gsun@redhat.com>
dac_nfs_disk: Add test case for disk snapshot with img backing file on nfs

Add test case for bug:
https://bugzilla.redhat.com/show_bug.cgi?id=822015

Signed-off-by: Wayne Sun <gsun@redhat.com>
dac_nfs_save_restore: Add test cases for save and restore domain with nfs file

For save domain to nfs file, 2 scenarios need be concerned:
  1. the file did not exist, root_squash will fail
  2. the file exist, similar to dac_nfs_disk test scenarios

In this commit, restore from file is following behind succeeded domain
saving, so the rule for restore follows as save.

Signed-off-by: Wayne Sun <gsun@redhat.com>
Add test for option libvirtd_config in sysconfig file

Test libvirtd_config parameter in /etc/sysconfig/libvirtd.

1) Change libvirtd_config in sysconfig;
2) Change host_uuid in newly defined libvirtd.conf file;
3) Restart libvirt daemon;
4) Check if libvirtd successfully started;
5) Check if host_uuid updated accordingly;

Signed-off-by: Hao Liu <hliu@redhat.com>
Add managedsave tests after dompmsuspend; Fix some bugs for nagative tests.
Add save/restore tests after dompmsuspend; Fix some code bugs.
libvirtd_start: Add case for only stop iptables

The new started libvirtd subprocess will lack permission on iptables
operation as not with selinux type 'virt_t', the iptables error in
libvirtd log is expected if found.

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

dac_nfs_disk: Add test cases for domain vol on netfs pool
Merge pull request #308 from waynesun09/dac_nfs_save_restore

dac_nfs_save_restore: Add test cases for save and restore domain with nfs file
Merge pull request #296 from rbian/dompmsuspend-managedsave

Add managedsave tests after dompmsuspend.
Merge pull request #292 from Hao-Liu/sysconfig_libvirtd

Add test for option libvirtd_config in sysconfig file
Merge pull request #320 from waynesun09/libvirtd_iptables

libvirtd_start: Add case for only stop iptables
libvirt.tests: Add tests for vcpu plug/unplug with different scenarios

Signed-off-by: Yanbing Du <ydu@redhat.com>