# HG changeset patch
# User Guolian Yun <yunguol(a)cn.ibm.com>
# Date 1228814455 28800
# Node ID af0bb1f10027c41daa9fd8b53f53abaa624df825
# Parent b12c6c2772b7b5540f06d32cdaa9c99a8bf4fb9d
[TEST] Update VSSDComponent [02_reverse.py] to verify GRASD and InputRASD
Signed-off-by: Guolian Yun <yunguol(a)cn.ibm.com>
diff -r b12c6c2772b7 -r af0bb1f10027
suites/libvirt-cim/cimtest/VirtualSystemSettingDataComponent/02_reverse.py
--- a/suites/libvirt-cim/cimtest/VirtualSystemSettingDataComponent/02_reverse.py Sun Dec
07 23:50:29 2008 -0800
+++ b/suites/libvirt-cim/cimtest/VirtualSystemSettingDataComponent/02_reverse.py Tue Dec
09 01:20:55 2008 -0800
@@ -83,11 +83,21 @@
verified.
"""
status = PASS
+ if virt == 'LXC' or virt == 'XenFV':
+ input_device = "mouse:usb"
+ elif virt == 'Xen':
+ input_device = "mouse:xen"
+ else:
+ input_device = "mouse:ps2"
+
rasd_list = {
"proc_rasd" : '%s/%s' %(test_dom, "proc"),
"net_rasd" : '%s/%s' %(test_dom,test_mac),
"disk_rasd" : '%s/%s' %(test_dom, test_disk),
- "mem_rasd" : '%s/%s' %(test_dom, "mem")
+ "mem_rasd" : '%s/%s' %(test_dom, "mem"),
+ "input_rasd": '%s/%s' %(test_dom, input_device),
+ "grap_rasd" : '%s/%s' %(test_dom,
"graphics")
+
}
try:
@@ -99,6 +109,8 @@
net_cn = get_typed_class(virt, 'NetResourceAllocationSettingData')
disk_cn = get_typed_class(virt, 'DiskResourceAllocationSettingData')
mem_cn = get_typed_class(virt, 'MemResourceAllocationSettingData')
+ input_cn = get_typed_class(virt, 'InputResourceAllocationSettingData')
+ grap_cn = get_typed_class(virt, 'GraphicsResourceAllocationSettingData')
for inst in assoc_info:
if inst.classname == proc_cn:
@@ -113,6 +125,12 @@
elif inst.classname == mem_cn:
status = check_rasd_values(inst['InstanceID'],
rasd_list['mem_rasd'])
+ elif inst.classname == input_cn:
+ status = check_rasd_values(inst['InstanceID'],
+ rasd_list['input_rasd'])
+ elif inst.classname == grap_cn:
+ status = check_rasd_values(inst['InstanceID'],
+ rasd_list['grap_rasd'])
else:
logger.error("Unexpected RASD instance type" )
status = FAIL