
# HG changeset patch # User Deepti B. Kalakeri <deeptik@linux.vnet.ibm.com> # Date 1217937888 25200 # Node ID c5f346ab79d7abab5e4b9d433cc89108d4265870 # Parent e58d58ab857cac9cad118eb517294ee1f4ece949 [TEST] #2 Fixing the tc 08_modifyresource.py and updating the others to accomdate the AllocationUnits field changes. Changes: ------- Patch 2: -------- 1) Reverted the changes to 08_modifyresource.py, since it is no longer required and the default values are assigned in the library for MemRASD. Hence the 08_modifyresource.py is no longer in the patch. Patch 1: -------- 1) Modified the tc to Pass appropriate values to AllocationUnits field. The changes are tested with KVM, Xen, XenFV on the current sources. Signed-off-by: Deepti B. Kalakeri <deeptik@linux.vnet.ibm.com> diff -r e58d58ab857c -r c5f346ab79d7 suites/libvirt-cim/cimtest/RASD/04_disk_rasd_size.py --- a/suites/libvirt-cim/cimtest/RASD/04_disk_rasd_size.py Tue Aug 05 04:58:00 2008 -0700 +++ b/suites/libvirt-cim/cimtest/RASD/04_disk_rasd_size.py Tue Aug 05 05:04:48 2008 -0700 @@ -78,7 +78,7 @@ def test_rasd(options, temp, test_size): drasd = drasd_class("hda", temp, default_dom) mrasd_class = vsms.get_masd_class(options.virt) - mrasd = mrasd_class(32, default_dom) + mrasd = mrasd_class(name=default_dom, megabytes=32) params = { "vssd" : vssd.mof(), diff -r e58d58ab857c -r c5f346ab79d7 suites/libvirt-cim/cimtest/VirtualSystemManagementService/11_define_memrasdunits.py --- a/suites/libvirt-cim/cimtest/VirtualSystemManagementService/11_define_memrasdunits.py Tue Aug 05 04:58:00 2008 -0700 +++ b/suites/libvirt-cim/cimtest/VirtualSystemManagementService/11_define_memrasdunits.py Tue Aug 05 05:04:48 2008 -0700 @@ -47,10 +47,8 @@ values = [ def try_define(options, vssd, units, value): mrasd_class = vsms.get_masd_class(options.virt) - mrasd = mrasd_class(None, default_dom) - - mrasd.AllocationUnits = units - mrasd.VirtualQuantity = value + mrasd = mrasd_class(megabytes=value, mallocunits=units, + name=default_dom) params = { "vssd" : vssd.mof(),