# HG changeset patch
# User Guolian Yun <yunguol(a)cn.ibm.com>
# Date 1224226125 25200
# Node ID 9b1a157b8e9dcef3ab009af30088b6f8ac846737
# Parent 69fe94b1348985a337d385865d7522c78f57e116
[TEST] #2 Modify RASD/04_disk_rasd_size.py to call new EnumInstances
Signed-off-by: Guolian Yun <yunguol(a)cn.ibm.com>
diff -r 69fe94b13489 -r 9b1a157b8e9d suites/libvirt-cim/cimtest/RASD/04_disk_rasd_size.py
--- a/suites/libvirt-cim/cimtest/RASD/04_disk_rasd_size.py Thu Oct 16 03:14:27 2008 -0700
+++ b/suites/libvirt-cim/cimtest/RASD/04_disk_rasd_size.py Thu Oct 16 23:48:45 2008 -0700
@@ -33,6 +33,7 @@ from XenKvmLib.common_util import create
from XenKvmLib.common_util import create_using_definesystem
from XenKvmLib import vsms
from XenKvmLib import enumclass
+from XenKvmLib.classes import get_typed_class
def make_image(ip, size):
s, fn = utils.run_remote(ip, "mktemp")
@@ -89,8 +90,9 @@ def test_rasd(options, temp, test_size):
options.ip,
params=params,
virt=options.virt)
-
- rasds = enumclass.enumerate_inst(options.ip, drasd_class, options.virt)
+
+ cn = get_typed_class(options.virt, 'DiskResourceAllocationSettingData')
+ rasds = enumclass.EnumInstances(options.ip, cn, ret_cim_inst=True)
status = FAIL
for rasd in rasds: