[Libvirt-cim] [PATCH] [TEST] add brach of err expr in VSSDC.03

Guo Lian Yun yunguol at cn.ibm.com
Mon Apr 28 04:34:27 UTC 2008


# HG changeset patch
# User Guolian Yun <yunguol at cn.ibm.com>
# Date 1209357260 25200
# Node ID c42e96b5347e24dbcfa1326f8f7101ebe361caa2
# Parent  22ed2c7c77e8ff3d96b40f1e0db2a931b5a7c37e
[TEST] add brach of err expr in VSSDC.03

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

diff -r 22ed2c7c77e8 -r c42e96b5347e suites/libvirt-cim/cimtest/VirtualSystemSettingDataComponent/03_vssdc_fwd_errs.py
--- a/suites/libvirt-cim/cimtest/VirtualSystemSettingDataComponent/03_vssdc_fwd_errs.py	Fri Apr 25 03:20:54 2008 -0700
+++ b/suites/libvirt-cim/cimtest/VirtualSystemSettingDataComponent/03_vssdc_fwd_errs.py	Sun Apr 27 21:34:20 2008 -0700
@@ -62,12 +62,14 @@ from CimTest.ReturnCodes import PASS, FA
 from CimTest.ReturnCodes import PASS, FAIL
 from CimTest.Globals import do_main, logger
 from CimTest.Globals import CIM_USER, CIM_PASS, CIM_NS
+from XenKvmLib.const import CIM_REV
 
 sup_types = ['Xen', 'XenFV', 'KVM']
 
 test_dom     = "domu1"
 test_mac     = "00:11:22:33:44:aa"
 test_vcpus   = 1
+rev = 2
 
 expr_values = {
     "INVALID_InstID_Keyname"   : { 'rc'   : pywbem.CIM_ERR_FAILED, \
@@ -75,6 +77,10 @@ expr_values = {
     "INVALID_InstID_Keyval"    : { 'rc'   : pywbem.CIM_ERR_NOT_FOUND, \
                      'desc' : 'No such instance (INVALID_InstID_Keyval)'}
 }
+
+if CIM_REV < 2:
+    expr_values['INVALID_InstID_Keyval'] = {'rc' : pywbem.CIM_ERR_FAILED, \
+                                            'desc' : 'Invalid InstanceID'}
 
 def try_invalid_assoc(classname, name_val, i, field, virt="Xen"):
     ac_classname = get_typed_class(virt, "VirtualSystemSettingDataComponent")




More information about the Libvirt-cim mailing list