# HG changeset patch
# User Guolian Yun <yunguol(a)cn.ibm.com>
# Date 1223962756 25200
# Node ID 430656f260d8b29c31a1c207103d849ee9d27aca
# Parent c7eaf17bd591f313b93ff2b2087cee11b25789e0
[TEST]#Modify VSSD.01 to call new EnumInstances and EnumNames
Signed-off-by: Guolian Yun <yunguol(a)cn.ibm.com>
diff -r c7eaf17bd591 -r 430656f260d8 suites/libvirt-cim/cimtest/VSSD/01_enum.py
--- a/suites/libvirt-cim/cimtest/VSSD/01_enum.py Fri Oct 10 03:08:12 2008 -0700
+++ b/suites/libvirt-cim/cimtest/VSSD/01_enum.py Mon Oct 13 22:39:16 2008 -0700
@@ -31,6 +31,7 @@ from XenKvmLib import enumclass
from XenKvmLib import enumclass
from XenKvmLib.test_doms import destroy_and_undefine_all
from XenKvmLib.vxml import get_class
+from XenKvmLib.classes import get_typed_class
from CimTest.Globals import logger
from XenKvmLib.const import do_main
from CimTest.ReturnCodes import PASS, FAIL
@@ -53,9 +54,8 @@ def main():
try:
live_cs = live.domain_list(options.ip, options.virt)
- key_list = ["InstanceID"]
- syslst = enumclass.enumerate(options.ip, "VirtualSystemSettingData",
- key_list, options.virt)
+ vssd_class = get_typed_class(options.virt, "VirtualSystemSettingData")
+ syslst = enumclass.enumerate(options.ip, vssd_class)
found = 0
for vssd in syslst :