# HG changeset patch
# User Guolian Yun <yunguol(a)cn.ibm.com>
# Date 1210149942 25200
# Node ID 98a838bab5f3f3e6cbac9ebfa58c5dec558d0fb0
# Parent 84517c1beb32bff13f352ed53ece0f6a1a84fe41
[TEST] modified branch version number in RAFP.03 and resumbit
Signed-off-by: Guolian Yun <yunguol(a)cn.ibm.com>
diff -r 84517c1beb32 -r 98a838bab5f3
suites/libvirt-cim/cimtest/ResourceAllocationFromPool/03_forward_errs.py
--- a/suites/libvirt-cim/cimtest/ResourceAllocationFromPool/03_forward_errs.py Tue May 06
14:47:59 2008 -0700
+++ b/suites/libvirt-cim/cimtest/ResourceAllocationFromPool/03_forward_errs.py Wed May 07
01:45:42 2008 -0700
@@ -28,12 +28,11 @@ 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 = 466
@do_main(sup_types)
def main():
@@ -47,6 +46,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})