# HG changeset patch
# User Guolian Yun <yunguol(a)cn.ibm.com>
# Date 1209434502 25200
# Node ID 130f68638b54942c80c869451bee81efb4057a39
# Parent 2b83c1992dfc44573ba0c00729e36311355807ad
[TEST] modified the revision number and resent the patch of RAFP.03
Signed-off-by: Guolian Yun <yunguol(a)cn.ibm.com>
diff -r 2b83c1992dfc -r 130f68638b54
suites/libvirt-cim/cimtest/ResourceAllocationFromPool/03_forward_errs.py
--- a/suites/libvirt-cim/cimtest/ResourceAllocationFromPool/03_forward_errs.py Sun Apr 27
19:22:03 2008 -0700
+++ b/suites/libvirt-cim/cimtest/ResourceAllocationFromPool/03_forward_errs.py Mon Apr 28
19:01:42 2008 -0700
@@ -28,12 +28,10 @@ from CimTest import Globals
from CimTest import Globals
from CimTest.Globals import logger, do_main
from CimTest.ReturnCodes import PASS, FAIL, XFAIL
+from XenKvmLib.const import CIM_REV
sup_types = ['Xen', 'XenFV', 'KVM']
-
-exp_rc = 6 #CIM_ERR_NOT_FOUND
-exp_desc = "No such instance (wrong) - resource pool type mismatch"
-
+rev = 393
@do_main(sup_types)
def main():
@@ -47,6 +45,13 @@ def main():
conn = assoc.myWBEMConnection('http://%s' % options.ip,
(Globals.CIM_USER, Globals.CIM_PASS),
Globals.CIM_NS)
+
+ exp_rc = 6 #CIM_ERR_NOT_FOUND
+ exp_desc = "No such instance (wrong) - resource pool type mismatch"
+ if CIM_REV < rev:
+ exp_rc = 1 # CIM_ERR_FAILED
+ exp_desc = "Invalid InstanceID or unsupported pool type"
+
for k, v in poollist.items():
instanceref = CIMInstanceName(k,
keybindings = {"InstanceID" : v})
Show replies by date