# HG changeset patch
# User Deepti B. Kalakeri<deeptik(a)linux.vnet.ibm.com>
# Date 1225865973 28800
# Node ID f0c349a1321c590b172b3ecaa279e5d0c2f0b26d
# Parent f5a2c1cc3df0bc76fbdcefad05c2254669a42428
[TEST] Updating 01_forward.py tc of SettingsDefineCapabilities.
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 f5a2c1cc3df0 -r f0c349a1321c
suites/libvirt-cim/cimtest/SettingsDefineCapabilities/01_forward.py
--- a/suites/libvirt-cim/cimtest/SettingsDefineCapabilities/01_forward.py Tue Nov 04
22:09:41 2008 -0800
+++ b/suites/libvirt-cim/cimtest/SettingsDefineCapabilities/01_forward.py Tue Nov 04
22:19:33 2008 -0800
@@ -63,8 +63,10 @@ from XenKvmLib.const import do_main, def
from XenKvmLib.const import do_main, default_pool_name, default_network_name
from XenKvmLib.classes import get_typed_class
from XenKvmLib.common_util import print_field_error
+from XenKvmLib.const import get_provider_version
platform_sup = ['Xen', 'KVM', 'XenFV', 'LXC']
+libvirt_rasd_template_changes = 707
memid = "MemoryPool/0"
procid = "ProcessorPool/0"
@@ -168,7 +170,9 @@ def verify_sdc_with_ac(virt, server, poo
assoc_info = assoc.Associators(server, assoc_cname, cn,
InstanceID = instid)
- if 'DiskPool' in instid and (virt =='Xen' or virt ==
'XenFV'):
+ curr_cim_rev, changeset = get_provider_version(virt, server)
+ if 'DiskPool' in instid and (virt =='Xen' or virt ==
'XenFV') 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
Show replies by date