# HG changeset patch
# User Guolian Yun <yunguol(a)cn.ibm.com>
# Date 1224139240 25200
# Node ID 305508cd6aaacfcfe133372bc963b55f284e599a
# Parent 96d45b1dcc0801ade819413abe1af43b3957dde4
[TEST] Update ElementConforms/01_forward.py to call new EnumInstances
Signed-off-by: Guolian Yun <yunguol(a)cn.ibm.com>
diff -r 96d45b1dcc08 -r 305508cd6aaa
suites/libvirt-cim/cimtest/ElementConforms/01_forward.py
--- a/suites/libvirt-cim/cimtest/ElementConforms/01_forward.py Wed Oct 15 06:07:28 2008
-0700
+++ b/suites/libvirt-cim/cimtest/ElementConforms/01_forward.py Wed Oct 15 23:40:40 2008
-0700
@@ -49,7 +49,7 @@ from CimTest.Globals import logger, CIM_
from CimTest.Globals import logger, CIM_ERROR_ASSOCIATORS, CIM_ERROR_ENUMERATE
from XenKvmLib.const import do_main
from CimTest.ReturnCodes import PASS, FAIL
-from XenKvmLib.enumclass import enumerate
+from XenKvmLib.enumclass import EnumInstances
from XenKvmLib.const import default_network_name, default_pool_name
@@ -139,8 +139,7 @@ def get_proflist(server, reg_classname,
profiles_instid_list = []
status = PASS
try:
- key_list = ["InstanceID"]
- proflist = enumerate(server, reg_classname, key_list, virt)
+ proflist = EnumInstances(server, reg_classname)
if len(proflist) < 7:
logger.error("'%s' returned '%d' '%s' objects,
expected atleast 7",
reg_classname, len(proflist), 'Profile')