[Libvirt-cim] [PATCH 5 of 5] [TEST] update RAFP.04 for XenFV and KVM support

Guo Lian Yun yunguol at cn.ibm.com
Mon Mar 31 08:01:11 UTC 2008


# HG changeset patch
# User Guolian Yun <yunguol at cn.ibm.com>
# Date 1206950440 25200
# Node ID a0bfc37ad626afe465fc629138b4a1c2f22af1ba
# Parent  f774e7aa50928c3a11cc4cac4d66496edd1de0c8
[TEST] update RAFP.04 for XenFV and KVM support

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

diff -r f774e7aa5092 -r a0bfc37ad626 suites/libvirt-cim/cimtest/ResourceAllocationFromPool/04_reverse_errs.py
--- a/suites/libvirt-cim/cimtest/ResourceAllocationFromPool/04_reverse_errs.py	Mon Mar 31 00:58:45 2008 -0700
+++ b/suites/libvirt-cim/cimtest/ResourceAllocationFromPool/04_reverse_errs.py	Mon Mar 31 01:00:40 2008 -0700
@@ -24,11 +24,12 @@ import pywbem
 import pywbem
 from pywbem.cim_obj import CIMInstanceName
 from XenKvmLib import assoc
+from XenKvmLib.classes import get_typed_class
 from CimTest import Globals
 from CimTest.Globals import log_param, logger, do_main
 from CimTest.ReturnCodes import PASS, FAIL, XFAIL
 
-sup_types = ['Xen']
+sup_types = ['Xen', 'XenFV', 'KVM']
 
 exp_rc = 6 #CIM_ERR_NOT_FOUND
 exp_desc = "No such instance"
@@ -41,7 +42,8 @@ def main():
     status = FAIL
 
 
-    dataset = {"Xen_MemResourceAllocationSettingData" : "wrong", "Xen_ProcResourceAllocationSettingData" : "wrong"}
+    dataset = {get_typed_class(options.virt, "MemResourceAllocationSettingData") : "wrong", 
+               get_typed_class(options.virt, "ProcResourceAllocationSettingData") : "wrong"}
     conn = assoc.myWBEMConnection('http://%s' % options.ip,                                        
                                   (Globals.CIM_USER, Globals.CIM_PASS),
                                   Globals.CIM_NS)
@@ -51,7 +53,8 @@ def main():
         names = []
 
         try:
-            names = conn.AssociatorNames(instanceref, AssocClass = "Xen_ResourceAllocationFromPool")
+            names = conn.AssociatorNames(instanceref, 
+                                         AssocClass = get_typed_class(options.virt, "ResourceAllocationFromPool"))
             rc = 0
         except pywbem.CIMError, (rc, desc):
             if rc == exp_rc and desc.find(exp_desc) >= 0:




More information about the Libvirt-cim mailing list