# HG changeset patch
# User Deepti B. Kalakeri <deeptik(a)linux.vnet.ibm.com>
# Date 1207834054 -19800
# Node ID 1f4926b238908ff7f4c6610fde37490492ba559c
# Parent 19ff9c851ed8cb76b74d158a4c439dfa5f4ccb50
[TEST] Fixed the tc 05_destroysystem_neg.py failure .
Signed-off-by: Deepti B. Kalakeri <deeptik(a)linux.vnet.ibm.com>
diff -r 19ff9c851ed8 -r 1f4926b23890
suites/libvirt-cim/cimtest/VirtualSystemManagementService/05_destroysystem_neg.py
---
a/suites/libvirt-cim/cimtest/VirtualSystemManagementService/05_destroysystem_neg.py Wed
Apr 09 18:00:14 2008 +0530
+++
b/suites/libvirt-cim/cimtest/VirtualSystemManagementService/05_destroysystem_neg.py Thu
Apr 10 18:57:34 2008 +0530
@@ -22,12 +22,9 @@
#
import sys
-import pywbem
from pywbem.cim_obj import CIMInstanceName
-from VirtLib import utils
from XenKvmLib import vsms
from XenKvmLib.classes import get_typed_class
-from XenKvmLib.test_doms import undefine_test_domain
from CimTest.Globals import log_param, logger
from CimTest.Globals import do_main
from CimTest.ReturnCodes import FAIL, PASS, SKIP
@@ -44,13 +41,12 @@ def destroysystem_fail(tc, options):
cs_ref = CIMInstanceName(classname,
keybindings = {'CreationClassName':classname})
elif tc == 'nonexistent':
- exp_rc = 4 #IM_RC_SYS_NOT_FOUND
- cs_ref = CIMInstanceName(classname,keybindings = {
+ exp_rc = 2 #IM_RC_SYS_NOT_FOUND
+ cs_ref = CIMInstanceName(classname, keybindings = {
'Name':'##@@!!cimtest_domain',
'CreationClassName':classname})
else:
return SKIP
-
status = FAIL
try:
ret = service.DestroySystem(AffectedSystem=cs_ref)