# HG changeset patch
# User Guolian Yun <yunguol(a)cn.ibm.com>
# Date 1207017308 25200
# Node ID 3ea353d2ace40242b044254a865335f8523e00bf
# Parent 5d47437104551b638aa75e2e525e49ec4b41e3ec
[TEST] add default value setting for indication test case
Signed-off-by: Guolian Yun <yunguol(a)cn.ibm.com>
diff -r 5d4743710455 -r 3ea353d2ace4 suites/libvirt-cim/lib/XenKvmLib/vxml.py
--- a/suites/libvirt-cim/lib/XenKvmLib/vxml.py Mon Mar 31 07:54:19 2008 -0700
+++ b/suites/libvirt-cim/lib/XenKvmLib/vxml.py Mon Mar 31 19:35:08 2008 -0700
@@ -37,7 +37,7 @@ from xml import xpath
from xml import xpath
from VirtLib import utils, live
from XenKvmLib.test_doms import set_uuid
-from CimTest.Globals import logger, CIM_IP
+from CimTest.Globals import logger, CIM_IP, CIM_PORT, CIM_NS, CIM_USER, CIM_PASS
from CimTest.ReturnCodes import SKIP
from XenKvmLib.classes import virt_types
@@ -548,3 +548,17 @@ def get_class(virt):
if virt in virt_types:
return eval(virt + 'XML')
+def set_default(server):
+ dict = {}
+ dict['default_sysname'] = live.full_hostname(server)
+ dict['default_port'] = CIM_PORT
+ dict['default_url'] = "%s:%s" % (dict['default_sysname'],
dict['default_port'])
+ dict['default_ns'] = CIM_NS
+ dict['default_name'] = "Test"
+ dict['default_dump'] = False
+ dict['default_print_ind'] = False
+ dict['default_username'] = CIM_USER
+ dict['default_password'] = CIM_PASS
+ dict['default_auth'] = (dict['default_username'],
dict['default_password'])
+
+ return dict