# HG changeset patch
# User Guolian Yun <yunguol(a)cn.ibm.com>
# Date 1206687821 25200
# Node ID 2507972be4b50c6f618d4a1d6a1ebea9084048da
# Parent 8a41117ff62a63324dcb8b7036602368c9693ecc
[TEST] update VSMC.02 for XenFV and KVM support
Signed-off-by: Guolian Yun <yunguol(a)cn.ibm.com>
diff -r 8a41117ff62a -r 2507972be4b5
suites/libvirt-cim/cimtest/VirtualSystemMigrationCapabilities/02_vsmc_gi_errs.py
--- a/suites/libvirt-cim/cimtest/VirtualSystemMigrationCapabilities/02_vsmc_gi_errs.py Fri
Mar 28 00:00:08 2008 -0700
+++ b/suites/libvirt-cim/cimtest/VirtualSystemMigrationCapabilities/02_vsmc_gi_errs.py Fri
Mar 28 00:03:41 2008 -0700
@@ -4,7 +4,7 @@
#
# Authors:
# Deepti B. Kalakeri<dkalaker(a)in.ibm.com>
-#
+# Guolian Yun <yunguol(a)cn.ibm.com>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public
@@ -52,8 +52,9 @@ from CimTest.Globals import do_main
from CimTest.Globals import do_main
from CimTest.ReturnCodes import PASS, FAIL
from XenKvmLib.common_util import try_getinstance
+from XenKvmLib.classes import get_typed_class
-sup_types = ['Xen']
+sup_types = ['Xen', 'XenFV', 'KVM']
expr_values = {
"invalid_instid" : { 'rc' :
pywbem.CIM_ERR_NOT_FOUND, \
@@ -67,7 +68,7 @@ def main():
log_param()
status = PASS
conn = assoc.myWBEMConnection('http://%s' % options.ip, (CIM_USER, CIM_PASS),
CIM_NS)
- classname = 'Xen_VirtualSystemMigrationCapabilities'
+ classname = get_typed_class(options.virt,
'VirtualSystemMigrationCapabilities')
field = 'INVALID_Instid_KeyName'
keys = { field : "RPCC" }