[PATCH] [TEST] Update ElementConforms/02_reverse.py to call new EnumInstances

# HG changeset patch # User Guolian Yun <yunguol@cn.ibm.com> # Date 1224139829 25200 # Node ID 911740d773d5e33000506db533a19d646ab2f18f # Parent 96d45b1dcc0801ade819413abe1af43b3957dde4 [TEST] Update ElementConforms/02_reverse.py to call new EnumInstances Signed-off-by: Guolian Yun <yunguol@cn.ibm.com> diff -r 96d45b1dcc08 -r 911740d773d5 suites/libvirt-cim/cimtest/ElementConforms/02_reverse.py --- a/suites/libvirt-cim/cimtest/ElementConforms/02_reverse.py Wed Oct 15 06:07:28 2008 -0700 +++ b/suites/libvirt-cim/cimtest/ElementConforms/02_reverse.py Wed Oct 15 23:50:29 2008 -0700 @@ -107,7 +107,8 @@ def main(): keys = ['Name', 'CreationClassName'] try: #Getting the hostname, to verify with the value returned by the assoc. - host_sys = enumclass.enumerate(options.ip, 'HostSystem', keys, options.virt) + cn = get_typed_class(options.virt, 'HostSystem') + host_sys = enumclass.EnumInstances(options.ip, cn) if len(host_sys) < 1: logger.error("ERROR: Enumerate returned 0 host instances") @@ -123,14 +124,10 @@ def main(): Globals.CIM_NS = 'root/interop' try: - key_list = ["InstanceID"] - proflist = enumclass.enumerate(options.ip, - "RegisteredProfile", - key_list, - options.virt) + cn = get_typed_class(options.virt, 'RegisteredProfile') + proflist = enumclass.EnumInstances(options.ip, cn) except Exception, details: - logger.error(CIM_ERROR_ENUMERATE, - get_typed_class(options.virt, 'RegisteredProfile')) + logger.error(CIM_ERROR_ENUMERATE, cn) logger.error("Exception: %s", details) return status
participants (1)
-
yunguol@cn.ibm.com