# HG changeset patch
# User Kaitlin Rupert <karupert(a)us.ibm.com>
# Date 1254510041 25200
# Node ID 061f37113f9294f83a4695d18b78e0abac5cb711
# Parent 9e5c87bfe7c61fe8e713790398ce5f5a8039809c
[TEST] Make VSSD 05 test SKIP is providers are older tha 837.
The UUID attribute wasn't available in the VSSD mof prior to that.
Signed-off-by: Kaitlin Rupert <karupert(a)us.ibm.com>
diff -r 9e5c87bfe7c6 -r 061f37113f92 suites/libvirt-cim/cimtest/VSSD/05_set_uuid.py
--- a/suites/libvirt-cim/cimtest/VSSD/05_set_uuid.py Fri Oct 02 11:53:30 2009 -0700
+++ b/suites/libvirt-cim/cimtest/VSSD/05_set_uuid.py Fri Oct 02 12:00:41 2009 -0700
@@ -27,14 +27,15 @@
from XenKvmLib import vsms
from XenKvmLib import vxml
from CimTest.Globals import logger
-from CimTest.ReturnCodes import PASS, FAIL
-from XenKvmLib.const import do_main
+from CimTest.ReturnCodes import PASS, FAIL, SKIP
+from XenKvmLib.const import do_main, get_provider_version
from XenKvmLib.classes import get_typed_class
from XenKvmLib.enumclass import GetInstance
sup_types = ['Xen', 'KVM', 'XenFV', 'LXC']
default_dom = 'uuid_domain'
uuid = set_uuid()
+uuid_changes = 873
def get_vssd(ip, virt, get_cim_inst):
cn = get_typed_class(virt, "VirtualSystemSettingData")
@@ -60,6 +61,12 @@
def main():
options = main.options
+ cim_rev, changeset = get_provider_version(options.virt, options.ip)
+ if cim_rev < uuid_changes:
+ logger.info("UUID attribute added VSSD in libvirt-cim version
'%s'",
+ uuid_changes)
+ return SKIP
+
service = vsms.get_vsms_class(options.virt)(options.ip)
cxml = vxml.get_class(options.virt)(default_dom, uuid=uuid)
Show replies by date
+1 for me.
--
Thanks and Regards,
Deepti B. Kalakeri
IBM Linux Technology Center
deeptik(a)linux.vnet.ibm.com