# HG changeset patch
# User Guolian Yun <yunguol(a)cn.ibm.com>
# Date 1236308534 28800
# Node ID 16a306969b173259c9dfd1ae099dc1aabd3d3f96
# Parent c6f7256013b97dc57a31312897e45eb3cd8604a7
[TEST] #2 Fix ComputerSystem/42_cs_gi_errs.py err desc for invalid name
Updates from 1 to 2:
Make err desc more clearly and limit to 80 characters
Updates tc to meet the provder updates
Tested for KVM/LXC with current sources and rpm
Signed-off-by: Guolian Yun<yunguol(a)cn.ibm.com>
diff -r c6f7256013b9 -r 16a306969b17
suites/libvirt-cim/cimtest/ComputerSystem/42_cs_gi_errs.py
--- a/suites/libvirt-cim/cimtest/ComputerSystem/42_cs_gi_errs.py Tue Mar 03 08:47:40 2009
-0800
+++ b/suites/libvirt-cim/cimtest/ComputerSystem/42_cs_gi_errs.py Thu Mar 05 19:02:14 2009
-0800
@@ -50,10 +50,11 @@
from CimTest.Globals import logger
from XenKvmLib import vxml
from XenKvmLib.classes import get_typed_class
-from XenKvmLib.const import do_main
+from XenKvmLib.const import do_main, get_provider_version
from XenKvmLib.enumclass import GetInstance, CIM_CimtestClass, EnumInstances
sup_types = ['Xen', 'KVM', 'XenFV', 'LXC']
+libvirt_err_changes = 821
expected_values = {
"invalid_name" : {'rc' : CIM_ERR_NOT_FOUND,
@@ -115,6 +116,11 @@
ref = CIMInstanceName(cn, keybindings=keys)
+ curr_cim_rev, changeset = get_provider_version(options.virt, options.ip)
+ if tc == 'invalid_name' and curr_cim_rev >= libvirt_err_changes:
+ expr_values['desc'] = "Referenced domain
`invalid_name'" + \
+ " does not exist: Domain not found"
+
try:
inst = CIM_CimtestClass(options.ip, ref)
Show replies by date
+1
--
Thanks and Regards,
Deepti B. Kalakeri
IBM Linux Technology Center
deeptik(a)linux.vnet.ibm.com