[PATCH] [TEST] Update SystemDevice-02_reverse.py to reflect computersystem.py changes

# HG changeset patch # User Guolian Yun <yunguol@cn.ibm.com> # Date 1220495178 25200 # Node ID 7ca3731d266a611e55d6cbb5118fd95f76844ae6 # Parent 3c04faaa67e001ecaf578a13da75f88235257576 [TEST] Update SystemDevice-02_reverse.py to reflect computersystem.py changes Signed-off-by: Guolian Yun <yunguol@cn.ibm.com> diff -r 3c04faaa67e0 -r 7ca3731d266a suites/libvirt-cim/cimtest/SystemDevice/02_reverse.py --- a/suites/libvirt-cim/cimtest/SystemDevice/02_reverse.py Tue Sep 02 23:10:52 2008 -0700 +++ b/suites/libvirt-cim/cimtest/SystemDevice/02_reverse.py Wed Sep 03 19:26:18 2008 -0700 @@ -27,7 +27,7 @@ import sys import sys from VirtLib import utils from XenKvmLib import vxml -from XenKvmLib import computersystem +from XenKvmLib import enumclass from XenKvmLib import assoc from XenKvmLib import devices from CimTest.Globals import logger, do_main @@ -91,8 +91,12 @@ def main(): cxml.destroy(options.ip) cxml.undefine(options.ip) return FAIL - - system = computersystem.system_of(options.ip, systems[0]) + + keys = { + 'Name': systems[0]['Name'], + 'CreationClassName': systems[0]['CreationClassName'] + } + system = enumclass.getInstance(options.ip, 'ComputerSystem', keys, options.virt) if system.Name == test_dom: status = PASS

+1 for me. Tested on KVM with current sources. Thanks and Regards, Deepti. yunguol@cn.ibm.com wrote:
# HG changeset patch # User Guolian Yun <yunguol@cn.ibm.com> # Date 1220495178 25200 # Node ID 7ca3731d266a611e55d6cbb5118fd95f76844ae6 # Parent 3c04faaa67e001ecaf578a13da75f88235257576 [TEST] Update SystemDevice-02_reverse.py to reflect computersystem.py changes
Signed-off-by: Guolian Yun <yunguol@cn.ibm.com>
diff -r 3c04faaa67e0 -r 7ca3731d266a suites/libvirt-cim/cimtest/SystemDevice/02_reverse.py --- a/suites/libvirt-cim/cimtest/SystemDevice/02_reverse.py Tue Sep 02 23:10:52 2008 -0700 +++ b/suites/libvirt-cim/cimtest/SystemDevice/02_reverse.py Wed Sep 03 19:26:18 2008 -0700 @@ -27,7 +27,7 @@ import sys import sys from VirtLib import utils from XenKvmLib import vxml -from XenKvmLib import computersystem +from XenKvmLib import enumclass from XenKvmLib import assoc from XenKvmLib import devices from CimTest.Globals import logger, do_main @@ -91,8 +91,12 @@ def main(): cxml.destroy(options.ip) cxml.undefine(options.ip) return FAIL - - system = computersystem.system_of(options.ip, systems[0]) + + keys = { + 'Name': systems[0]['Name'], + 'CreationClassName': systems[0]['CreationClassName'] + } + system = enumclass.getInstance(options.ip, 'ComputerSystem', keys, options.virt)
if system.Name == test_dom: status = PASS
_______________________________________________ Libvirt-cim mailing list Libvirt-cim@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-cim
participants (2)
-
Deepti B Kalakeri
-
yunguol@cn.ibm.com