
# HG changeset patch # User Guolian Yun <yunguol@cn.ibm.com> # Date 1207038066 25200 # Node ID 89c4783a0752cd032ce995a838eef561c358a12a # Parent 5d47437104551b638aa75e2e525e49ec4b41e3ec [TEST] HostedService.01 for XenFV support Signed-off-by: Guolian Yun <yunguol@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: