svirt_start_destroy: Add test cases with security_driver as none

The setting in qemu conf affects the behavior when starts domain with
seclabel, by default the security_driver is selinux and dac, in this
commit add the security_driver as 'none' test cases.

Signed-off-by: Wayne Sun <gsun@redhat.com>
svirt_start_destroy: Add bug number to label restore FAIL cases

The label restore problem is a long time existing bug we are aware of,
and no fix in upstream yet, check more info in:
https://bugzilla.redhat.com/show_bug.cgi?id=547546

Signed-off-by: Wayne Sun <gsun@redhat.com>
svirt_start_destroy: Update seclabel functions

Using list as given parameter and return according to change in
vm_xml module.

Signed-off-by: Wayne Sun <gsun@redhat.com>
Update set_seclabel use list in svirt test cases

Using list as given parameter according to vm_xml module change.

Signed-off-by: Wayne Sun <gsun@redhat.com>
svirt_start_destroy: Add cases for multiple seclabels

Add cases for contain both dac and selinux model seclabels, also
with setting in qemu.conf.

Signed-off-by: Wayne Sun <gsun@redhat.com>
svirt_start_destroy: Add cases for security_default_confined as 0

Add unconfined cases with security_default_confined as 0 in qemu.conf

Signed-off-by: Wayne Sun <gsun@redhat.com>
svirt_start_destroy: Add negative cases for security_require_confined as 1

When security_require_confined set as 1, VM with seclabel type as None
will fail to start.

Signed-off-by: Wayne Sun <gsun@redhat.com>
svirt_start_destroy: simplify qemu conf setting code

Signed-off-by: Wayne Sun <gsun@redhat.com>
svirt_start_destroy: Use attr function when set qemu conf

The set_string function is for set string value with quote mark
in conf, which with customize result to avoid raw string in config
file.

For security_driver in qemu conf, set string other than default
list as testing use string.

Signed-off-by: Wayne Sun <gsun@redhat.com>
Fix typos in svirt cases

s/successed/succeeded/

Signed-off-by: Wayne Sun <gsun@redhat.com>
svirt_start_destroy: Update destroy and test prepare code

Update destroy with option 'gracefully=False' and put setter into
try..finally to aovid possible failure.

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

svirt_start_destroy: Add more test cases