# HG changeset patch
# User Guolian Yun <yunguol(a)cn.ibm.com>
# Date 1233825583 28800
# Node ID 3fc2b8a203339c6a59b5f0e2a159e3e0a802ea6d
# Parent edfa908a60d058c7f1ba7394bd1d818999802287
[TEST Split lines to 80-char width limit in SettingsDefineCapabilities/01_forward.py
This tc fails because of the number of RASD objects, I've sent a patch with fix
Tested for KVM/LXC with current sources
Signed-off-by: Guolian Yun<yunguol(a)cn.ibm.com>
diff -r edfa908a60d0 -r 3fc2b8a20333
suites/libvirt-cim/cimtest/SettingsDefineCapabilities/01_forward.py
--- a/suites/libvirt-cim/cimtest/SettingsDefineCapabilities/01_forward.py Tue Feb 03
09:37:05 2009 -0800
+++ b/suites/libvirt-cim/cimtest/SettingsDefineCapabilities/01_forward.py Thu Feb 05
01:19:43 2009 -0800
@@ -92,10 +92,15 @@
Creating the lists that will be used for comparisons.
"""
+ memrasd = get_typed_class(virt, "MemResourceAllocationSettingData")
+ diskrasd = get_typed_class(virt, "DiskResourceAllocationSettingData")
+ netrasd = get_typed_class(virt, "NetResourceAllocationSettingData")
+ procrasd = get_typed_class(virt, "ProcResourceAllocationSettingData")
+
if virt == 'LXC':
instlist = [ pool[1].InstanceID ]
- cllist = [ get_typed_class(virt, "MemResourceAllocationSettingData") ]
- rtype = { get_typed_class(virt, "MemResourceAllocationSettingData") :
4 }
+ cllist = [ memrasd ]
+ rtype = { memrasd : 4 }
else:
instlist = [
pool[0].InstanceID,
@@ -103,17 +108,12 @@
pool[2].InstanceID,
pool[3].InstanceID
]
- cllist = [
- get_typed_class(virt, "DiskResourceAllocationSettingData"),
- get_typed_class(virt, "MemResourceAllocationSettingData"),
- get_typed_class(virt, "NetResourceAllocationSettingData"),
- get_typed_class(virt, "ProcResourceAllocationSettingData")
- ]
+ cllist = [ diskrasd, memrasd, netrasd, procrasd ]
rtype = {
- get_typed_class(virt, "DiskResourceAllocationSettingData") :
17,
- get_typed_class(virt, "MemResourceAllocationSettingData") :
4,
- get_typed_class(virt, "NetResourceAllocationSettingData") :
10,
- get_typed_class(virt, "ProcResourceAllocationSettingData") :
3
+ diskrasd : 17,
+ memrasd : 4,
+ netrasd : 10,
+ procrasd : 3
}
rangelist = {
"Default" : 0,