[PATCH] [TEST] Update VSSDComponent [02_reverse.py] to verify GRASD and InputRASD

# HG changeset patch # User Guolian Yun <yunguol@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@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

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") + }
rasd_list is already defined earlier in the test - just add the necessary values for input/graphics. -- Kaitlin Rupert IBM Linux Technology Center kaitlin@linux.vnet.ibm.com

libvirt-cim-bounces@redhat.com wrote on 2008-12-10 04:44:01:
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") + }
rasd_list is already defined earlier in the test - just add the necessary values for input/graphics.
Hmm, I added input/graphics into rasd_list instead of redefine in this test, this is the only one rasd_list definition =) Thanks!
-- Kaitlin Rupert IBM Linux Technology Center kaitlin@linux.vnet.ibm.com
_______________________________________________ Libvirt-cim mailing list Libvirt-cim@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-cim

Guo Lian Yun wrote:
libvirt-cim-bounces@redhat.com wrote on 2008-12-10 04:44:01:
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") + }
rasd_list is already defined earlier in the test - just add the necessary values for input/graphics.
Hmm, I added input/graphics into rasd_list instead of redefine in this test, this is the only one rasd_list definition =)
Oops - yes, my mistake. When I read this at first, I thought you had branched the test. But you don't need to do that, so this is fine. =) -- Kaitlin Rupert IBM Linux Technology Center kaitlin@linux.vnet.ibm.com
participants (3)
-
Guo Lian Yun
-
Kaitlin Rupert
-
yunguol@cn.ibm.com