# HG changeset patch
# User Guolian Yun <yunguol(a)cn.ibm.com>
# Date 1206943227 25200
# Node ID 769a9211a486b64e6a3dedcd964ab6c93989202b
# Parent 612ccb311e273b091659fe14f0471567abe61d08
[TEST] add default value setting for indication test case
Signed-off-by: Guolian Yun <yunguol(a)cn.ibm.com>
diff -r 612ccb311e27 -r 769a9211a486 suites/libvirt-cim/lib/XenKvmLib/vxml.py
--- a/suites/libvirt-cim/lib/XenKvmLib/vxml.py Fri Mar 28 00:03:41 2008 -0700
+++ b/suites/libvirt-cim/lib/XenKvmLib/vxml.py Sun Mar 30 23:00:27 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