# HG changeset patch
# User Guolian Yun <yunguol(a)cn.ibm.com>
# Date 1207038288 25200
# Node ID 4dcaa4a1c072b45a0bce823754b92b3958ffd4a7
# Parent 89c4783a0752cd032ce995a838eef561c358a12a
[TEST] HostedService.02 for XenFV support
Signed-off-by: Guolian Yun <yunguol(a)cn.ibm.com>
diff -r 89c4783a0752 -r 4dcaa4a1c072
suites/libvirt-cim/cimtest/HostedService/02_reverse.py
--- a/suites/libvirt-cim/cimtest/HostedService/02_reverse.py Tue Apr 01 01:21:06 2008
-0700
+++ b/suites/libvirt-cim/cimtest/HostedService/02_reverse.py Tue Apr 01 01:24:48 2008
-0700
@@ -25,12 +25,13 @@ from VirtLib import utils
from VirtLib import utils
from XenKvmLib import assoc
from XenKvmLib import hostsystem
+from XenKvmLib.classes import get_typed_class
from CimTest import Globals
from CimTest.Globals import do_main
from CimTest.Globals import log_param, logger
from CimTest.ReturnCodes import PASS, FAIL, XFAIL
-sup_types = ['Xen', 'KVM']
+sup_types = ['Xen', 'XenFV', 'KVM']
@do_main(sup_types)
def main():
@@ -52,7 +53,7 @@ def main():
k,
options.virt,
Name = v,
- CreationClassName = "%s_%s" %
(options.virt, k),
+ CreationClassName =
get_typed_class(options.virt, k),
SystemCreationClassName =
host_sys.CreationClassName,
SystemName = host_sys.Name)
except Exception:
@@ -66,7 +67,7 @@ def main():
ccn = assoc_host[0].keybindings['CreationClassName']
name = assoc_host[0].keybindings['Name']
- if ccn != "%s_HostSystem" % options.virt:
+ if ccn != get_typed_class(options.virt, "HostSystem"):
logger.error("CreationClassName Error")
return FAIL
elif name != host_sys.Name: