# HG changeset patch
# User Guolian Yun <yunguol(a)cn.ibm.com>
# Date 1224075437 25200
# Node ID 94e61830d6cc83989f0aa4e7179e67e9eb7fe9bb
# Parent b22a7a3c7972648a8067b88189ff5a7a8509b160
[TEST] #3 Modify VSSD.01 to call new EnumInstances
Signed-off-by: Guolian Yun <yunguol(a)cn.ibm.com>
diff -r b22a7a3c7972 -r 94e61830d6cc suites/libvirt-cim/cimtest/VSSD/01_enum.py
--- a/suites/libvirt-cim/cimtest/VSSD/01_enum.py Mon Oct 13 22:48:51 2008 -0700
+++ b/suites/libvirt-cim/cimtest/VSSD/01_enum.py Wed Oct 15 05:57:17 2008 -0700
@@ -29,6 +29,7 @@ import sys
import sys
from VirtLib import live
from XenKvmLib import enumclass
+from XenKvmLib.classes import get_typed_class
from XenKvmLib.test_doms import destroy_and_undefine_all
from XenKvmLib.vxml import get_class
from CimTest.Globals import logger
@@ -53,10 +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.EnumInstances(options.ip, vssd_class)
found = 0
for vssd in syslst :
if options.virt == 'XenFV':