# HG changeset patch
# User Deepti B. Kalakeri<deeptik(a)linux.vnet.ibm.com>
# Date 1225862746 28800
# Node ID b1634f5d4f0b0cb0f373e3790754536786e9b008
# Parent f5bac806db6e00499b572364216031240a31fe8f
[TEST] Updating the tc to verify fewer Profile when rev < 680.
This tc will still fail since the following query does not work yet.
Will send a follow up patch for the same.
Signed-off-by: Deepti B. Kalakeri <deeptik(a)linux.vnet.ibm.com>
diff -r f5bac806db6e -r b1634f5d4f0b
suites/libvirt-cim/cimtest/ElementConforms/01_forward.py
--- a/suites/libvirt-cim/cimtest/ElementConforms/01_forward.py Tue Nov 04 20:55:00 2008
-0800
+++ b/suites/libvirt-cim/cimtest/ElementConforms/01_forward.py Tue Nov 04 21:25:46 2008
-0800
@@ -51,11 +51,13 @@ from CimTest.ReturnCodes import PASS, FA
from CimTest.ReturnCodes import PASS, FAIL, XFAIL_RC
from XenKvmLib.enumclass import EnumInstances
from XenKvmLib.const import default_network_name, default_pool_name
+from XenKvmLib.const import get_provider_version
sup_types = ['Xen', 'XenFV', 'KVM', 'LXC']
test_dom = "domU"
bug_sblim = '00007'
+libvirt_cim_ectp_changes = 680
def pool_init(verify_list, pool_cn, pool_name, virt):
ccn = get_typed_class(virt, pool_cn)
@@ -141,9 +143,14 @@ def get_proflist(server, reg_classname,
status = PASS
try:
proflist = EnumInstances(server, reg_classname)
- if len(proflist) < 7:
- logger.error("'%s' returned '%d' '%s' objects,
expected atleast 7",
- reg_classname, len(proflist), 'Profile')
+ curr_cim_rev, changeset = get_provider_version(virt, server)
+ if curr_cim_rev < libvirt_cim_ectp_changes:
+ len_prof_list = 5
+ else:
+ len_prof_list = 7
+ if len(proflist) < len_prof_list:
+ logger.error("'%s' returned '%d' '%s' objects,
expected atleast %d",
+ reg_classname, len(proflist), 'Profile',
len_prof_list)
status = FAIL
except Exception, detail:
Show replies by date