[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Libvirt-cim] [PATCH] [TEST] Update RASD.02 and 04 to call new EnumNames



yunguol cn ibm com wrote:
# HG changeset patch
# User Guolian Yun <yunguol cn ibm com>
# Date 1224142098 25200
# Node ID 2826e6986d8ac5ec6016fa43890260794841f185
# Parent  96d45b1dcc0801ade819413abe1af43b3957dde4
[TEST] Update RASD.02 and 04 to call new EnumNames

Signed-off-by: Guolian Yun <yunguol cn ibm com>

diff -r 96d45b1dcc08 -r 2826e6986d8a suites/libvirt-cim/cimtest/RASD/02_enum.py
--- a/suites/libvirt-cim/cimtest/RASD/02_enum.py	Wed Oct 15 06:07:28 2008 -0700
+++ b/suites/libvirt-cim/cimtest/RASD/02_enum.py	Thu Oct 16 00:28:18 2008 -0700
@@ -68,7 +68,7 @@ def get_rasd_values(classname, virt, ser
     status = PASS
     rasd_list   = []
     try:
-        rasd_list = enumclass.enumerate_inst(server, classname, virt)
+        rasd_list = enumclass.EnumNames(server, classname)
         if len(rasd_list) < 1:
             logger.error("%s returned %i instances, excepted at least 1.",
                     classname, len(rasd_list))
diff -r 96d45b1dcc08 -r 2826e6986d8a suites/libvirt-cim/cimtest/RASD/04_disk_rasd_size.py
--- a/suites/libvirt-cim/cimtest/RASD/04_disk_rasd_size.py	Wed Oct 15 06:07:28 2008 -0700
+++ b/suites/libvirt-cim/cimtest/RASD/04_disk_rasd_size.py	Thu Oct 16 00:28:18 2008 -0700
@@ -90,7 +90,7 @@ def test_rasd(options, temp, test_size):
                               params=params,
                               virt=options.virt)
- rasds = enumclass.enumerate_inst(options.ip, drasd_class, options.virt)
+    rasds = enumclass.EnumNames(options.ip, drasd_class)

     status = FAIL
     for rasd in rasds:


Both of these need to use EnumInstances() instead of EnumNames().

--
Kaitlin Rupert
IBM Linux Technology Center
kaitlin linux vnet ibm com


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]