# HG changeset patch
# User Deepti B. Kalakeri <deeptik(a)linux.vnet.ibm.com>
# Date 1211377067 25200
# Node ID 2039130968f0c4e19234dcfbba9940eddbcd7325
# Parent 9b9ca7b60c72f3efb3262dda68bfd327f8ed44bb
[TEST]Fixing 02_hostsystem_to_rasd.py tc of HostSystem.
Signed-off-by: Deepti B. Kalakeri <deeptik(a)linux.vnet.ibm.com>
diff -r 9b9ca7b60c72 -r 2039130968f0
suites/libvirt-cim/cimtest/HostSystem/02_hostsystem_to_rasd.py
--- a/suites/libvirt-cim/cimtest/HostSystem/02_hostsystem_to_rasd.py Wed May 21 06:35:12
2008 -0700
+++ b/suites/libvirt-cim/cimtest/HostSystem/02_hostsystem_to_rasd.py Wed May 21 06:37:47
2008 -0700
@@ -68,6 +68,7 @@ test_mem = 128
test_mem = 128
test_mac = "00:11:22:33:44:aa"
rev = 529
+proc_instid_rev = 590
def init_list(vsxml, virt="Xen"):
"""
@@ -81,7 +82,7 @@ def init_list(vsxml, virt="Xen"):
rasd_values = {
proc_cn : {
- "InstanceID" : '%s/%s'
%(test_dom, "0"),
+ "InstanceID" : '%s/%s'
%(test_dom, "proc"),
"ResourceType" : 3,
},
disk_cn : {
@@ -104,6 +105,9 @@ def init_list(vsxml, virt="Xen"):
}
if CIM_REV < rev:
rasd_values[mem_cn]['AllocationUnits'] = "MegaBytes"
+
+ if CIM_REV < proc_instid_rev:
+ rasd_values[proc_cn]['InstanceID'] = '%s/%s' %(test_dom, 0)
return rasd_values
Show replies by date