# HG changeset patch
# User Guolian Yun <yunguol(a)cn.ibm.com>
# Date 1216973963 25200
# Node ID f45e90649f2f3f21e169537463d491e965723cdd
# Parent 32d78f23f6e73f5443022179410128767896465d
[TEST] Update ResourcePool.01 & 02 for XenFV support
Signed-off-by: Guolian Yun <yunguol(a)cn.ibm.com>
diff -r 32d78f23f6e7 -r f45e90649f2f suites/libvirt-cim/cimtest/ResourcePool/01_enum.py
--- a/suites/libvirt-cim/cimtest/ResourcePool/01_enum.py Wed Jul 23 00:32:36 2008 -0700
+++ b/suites/libvirt-cim/cimtest/ResourcePool/01_enum.py Fri Jul 25 01:19:23 2008 -0700
@@ -39,7 +39,7 @@ from XenKvmLib.common_util import cleanu
from XenKvmLib.common_util import cleanup_restore, test_dpath, \
create_diskpool_file
-sup_types = ['Xen', 'KVM', 'LXC']
+sup_types = ['Xen', 'KVM', 'XenFV', 'LXC']
diskid = "%s/%s" % ("DiskPool", test_dpath)
dp_cn = 'DiskPool'
@@ -105,7 +105,10 @@ def verify_fields(pool_list, poolname, c
@do_main(sup_types)
def main():
ip = main.options.ip
- virt = main.options.virt
+ if main.options.virt == "XenFV":
+ virt = "Xen"
+ else:
+ virt = main.options.virt
status, pool_list = init_list(ip, virt)
if status != PASS:
logger.error("Failed to initialise the list")
diff -r 32d78f23f6e7 -r f45e90649f2f
suites/libvirt-cim/cimtest/ResourcePool/02_rp_gi_errors.py
--- a/suites/libvirt-cim/cimtest/ResourcePool/02_rp_gi_errors.py Wed Jul 23 00:32:36 2008
-0700
+++ b/suites/libvirt-cim/cimtest/ResourcePool/02_rp_gi_errors.py Fri Jul 25 01:19:23 2008
-0700
@@ -40,7 +40,7 @@ from XenKvmLib.common_util import cleanu
from XenKvmLib.common_util import cleanup_restore, test_dpath, \
create_diskpool_file
-sup_types = ['Xen', 'KVM', 'LXC']
+sup_types = ['Xen', 'KVM', 'XenFV', 'LXC']
expr_values = {
"invalid_keyname" : { 'rc' : pywbem.CIM_ERR_FAILED,
@@ -88,7 +88,10 @@ def err_invalid_instid_keyvalue(conn, cl
@do_main(sup_types)
def main():
ip = main.options.ip
- virt = main.options.virt
+ if main.options.virt == "XenFV":
+ virt = "Xen"
+ else:
+ virt = main.options.virt
conn = assoc.myWBEMConnection('http://%s' % ip, (CIM_USER, CIM_PASS),
CIM_NS)
Show replies by date
yunguol(a)cn.ibm.com wrote:
# HG changeset patch
# User Guolian Yun <yunguol(a)cn.ibm.com>
# Date 1216973963 25200
# Node ID f45e90649f2f3f21e169537463d491e965723cdd
# Parent 32d78f23f6e73f5443022179410128767896465d
[TEST] Update ResourcePool.01 & 02 for XenFV support
Signed-off-by: Guolian Yun <yunguol(a)cn.ibm.com>
diff -r 32d78f23f6e7 -r f45e90649f2f suites/libvirt-cim/cimtest/ResourcePool/01_enum.py
This fails on Xen and XenFV for me, which means its an existing bug. I
can you look into fixing this up in this patch. Here's the error I get:
ResourcePool - 01_enum.py: FAIL
ERROR - InstanceID Mismatch
ERROR - Returned NetworkPool/default-net44 instead of
NetworkPool/default-net
--
Kaitlin Rupert
IBM Linux Technology Center
kaitlin(a)linux.vnet.ibm.com