Signed-off-by: Guolian Yun <yunguol(a)cn.ibm.com>
Show replies by date
# HG changeset patch
# User Guolian Yun <yunguol(a)cn.ibm.com>
# Date 1207038066 25200
# Node ID 89c4783a0752cd032ce995a838eef561c358a12a
# Parent 5d47437104551b638aa75e2e525e49ec4b41e3ec
[TEST] HostedService.01 for XenFV support
Signed-off-by: Guolian Yun <yunguol(a)cn.ibm.com>
diff -r 5d4743710455 -r 89c4783a0752
suites/libvirt-cim/cimtest/HostedService/01_forward.py
--- a/suites/libvirt-cim/cimtest/HostedService/01_forward.py Mon Mar 31 07:54:19 2008
-0700
+++ b/suites/libvirt-cim/cimtest/HostedService/01_forward.py Tue Apr 01 01:21:06 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():
@@ -56,9 +57,9 @@ def main():
logger.error("No association return")
return FAIL
- valid_services = ["%s_ResourcePoolConfigurationService" % options.virt,
- "%s_VirtualSystemManagementService" % options.virt,
- "%s_VirtualSystemMigrationService" % options.virt]
+ valid_services = [get_typed_class(options.virt,
"ResourcePoolConfigurationService"),
+ get_typed_class(options.virt,
"VirtualSystemManagementService"),
+ get_typed_class(options.virt,
"VirtualSystemMigrationService")]
for item in service:
ccn = item.keybindings["CreationClassName"]
if ccn not in valid_services:
# 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: