# HG changeset patch
# User Deepti B. Kalakeri<deeptik(a)linux.vnet.ibm.com>
# Date 1225865381 28800
# Node ID f5a2c1cc3df0bc76fbdcefad05c2254669a42428
# Parent b1634f5d4f0b0cb0f373e3790754536786e9b008
[TEST] Updating 03_hs_to_settdefcap.py tc of HostSystem .
This modification is required for libvirt-cim providers which does not include
the properties of template RASDs changes.
Signed-off-by: Deepti B. Kalakeri <deeptik(a)linux.vnet.ibm.com>
diff -r b1634f5d4f0b -r f5a2c1cc3df0
suites/libvirt-cim/cimtest/HostSystem/03_hs_to_settdefcap.py
--- a/suites/libvirt-cim/cimtest/HostSystem/03_hs_to_settdefcap.py Tue Nov 04 21:25:46
2008 -0800
+++ b/suites/libvirt-cim/cimtest/HostSystem/03_hs_to_settdefcap.py Tue Nov 04 22:09:41
2008 -0800
@@ -50,11 +50,13 @@ from CimTest.ReturnCodes import PASS, FA
from CimTest.ReturnCodes import PASS, FAIL, XFAIL_RC
from XenKvmLib.test_xml import testxml
from XenKvmLib.test_doms import destroy_and_undefine_all
+from XenKvmLib.const import get_provider_version
sup_types = ['Xen', 'KVM', 'XenFV', 'LXC']
test_dom = "domgst_test"
test_vcpus = 1
bug_sblim='00007'
+libvirt_rasd_template_changes = 707
def setup_env(server, virt="Xen"):
status = PASS
@@ -215,7 +217,9 @@ def get_rasddetails(server, alloccap, vi
ccn,
InstanceID = ap['InstanceID'])
- if 'DiskPool' in ap['InstanceID'] and virt =='Xen':
+ curr_cim_rev, changeset = get_provider_version(virt, server)
+ if 'DiskPool' in ap['InstanceID'] and virt =='Xen'
and \
+ curr_cim_rev >= libvirt_rasd_template_changes:
# For Diskpool, we have info 1 for each of Min, Max,
# default, Increment and 1 for each of PV and FV
# hence 4 * 2 = 8 records