# HG changeset patch
# User Guolian Yun <yunguol(a)cn.ibm.com>
# Date 1224226482 25200
# Node ID eb60cd543c12ba92606eac1777d14296062e36d9
# Parent 69fe94b1348985a337d385865d7522c78f57e116
[TEST] #2 Modify ResourcePoolConfigurationCapabilities/01_enum.py to call new
EnumInstances
Signed-off-by: Guolian Yun <yunguol(a)cn.ibm.com>
diff -r 69fe94b13489 -r eb60cd543c12
suites/libvirt-cim/cimtest/ResourcePoolConfigurationCapabilities/01_enum.py
--- a/suites/libvirt-cim/cimtest/ResourcePoolConfigurationCapabilities/01_enum.py Thu Oct
16 03:14:27 2008 -0700
+++ b/suites/libvirt-cim/cimtest/ResourcePoolConfigurationCapabilities/01_enum.py Thu Oct
16 23:54:42 2008 -0700
@@ -23,6 +23,7 @@
import sys
from XenKvmLib import enumclass
+from XenKvmLib.classes import get_typed_class
from CimTest import Globals
from XenKvmLib.const import do_main
from CimTest.ReturnCodes import PASS, FAIL
@@ -33,14 +34,11 @@ def main():
def main():
options = main.options
- key_list = ["InstanceID"]
+ cn = get_typed_class(options.virt,
"ResourcePoolConfigurationCapabilities")
try:
- rpcc = enumclass.enumerate(options.ip,
- "ResourcePoolConfigurationCapabilities",
- key_list,
- options.virt)
+ rpcc = enumclass.EnumInstances(options.ip, cn)
except Exception:
- Globals.logger.error(Globals.CIM_ERROR_ENUMERATE,
'%s_ResourcePoolConfigurationCapabilities' % options.virt)
+ Globals.logger.error(Globals.CIM_ERROR_ENUMERATE, cn)
return FAIL
if len(rpcc) != 1: