# HG changeset patch
# User Guolian Yun <yunguol(a)cn.ibm.com>
# Date 1206687608 25200
# Node ID 8a41117ff62a63324dcb8b7036602368c9693ecc
# Parent 9ae9d9c26a3024f02c8837ba0bca023385ab5c3d
[TEST] update VSMC.01 test case for XenFV and KVM support
Signed-off-by: Guolian Yun <yunguol(a)cn.ibm.com>
diff -r 9ae9d9c26a30 -r 8a41117ff62a
suites/libvirt-cim/cimtest/VirtualSystemMigrationCapabilities/01_enum.py
--- a/suites/libvirt-cim/cimtest/VirtualSystemMigrationCapabilities/01_enum.py Thu Mar 27
23:54:29 2008 -0700
+++ b/suites/libvirt-cim/cimtest/VirtualSystemMigrationCapabilities/01_enum.py Fri Mar 28
00:00:08 2008 -0700
@@ -24,10 +24,11 @@
import sys
from XenKvmLib import enumclass
+from XenKvmLib.classes import get_typed_class
from CimTest.Globals import log_param, CIM_ERROR_ENUMERATE, logger, do_main
from CimTest.ReturnCodes import PASS, FAIL
-sup_types = ['Xen']
+sup_types = ['Xen', 'XenFV', 'KVM']
def print_error(fieldname, ret_value, exp_value):
logger.error("%s Mismatch", fieldname)
@@ -39,12 +40,13 @@ def main():
log_param()
# Expected values from the enumetation
- cn = 'Xen_VirtualSystemMigrationCapabilities'
+ cn = get_typed_class(options.virt, 'VirtualSystemMigrationCapabilities')
instid = 'MigrationCapabilities'
try:
vsmc = enumclass.enumerate_inst(options.ip,
-
enumclass.Xen_VirtualSystemMigrationCapabilities)
+ "VirtualSystemMigrationCapabilities",
+ options.virt)
except Exception:
logger.error(CIM_ERROR_ENUMERATE, cn)
return FAIL