[Libvirt-cim] [PATCH] [TEST] #3Add "AllocationCapabilities" to associate with ECTP and skip KVM_RegisteredProfile association

yunguol at cn.ibm.com yunguol at cn.ibm.com
Thu Mar 5 02:40:49 UTC 2009


# HG changeset patch
# User Guolian Yun <yunguol at cn.ibm.com>
# Date 1236220843 28800
# Node ID 8d5f30111ac7e1be2eda35a6bf5b43e34ce6ceb5
# Parent  c6f7256013b97dc57a31312897e45eb3cd8604a7
[TEST] #3Add "AllocationCapabilities" to associate with ECTP and skip KVM_RegisteredProfile association


Updates from 2 to 3:
Add changeset instead of skip the verification of KVM_ResourceAllocation to ECTP for all the src versions

Tested for KVM/LXC with current sources and rpm on Pegasus

Signed-off-by: Guolian Yun<yunguol at cn.ibm.com>

diff -r c6f7256013b9 -r 8d5f30111ac7 suites/libvirt-cim/cimtest/ElementConforms/01_forward.py
--- a/suites/libvirt-cim/cimtest/ElementConforms/01_forward.py	Tue Mar 03 08:47:40 2009 -0800
+++ b/suites/libvirt-cim/cimtest/ElementConforms/01_forward.py	Wed Mar 04 18:40:43 2009 -0800
@@ -63,7 +63,7 @@
     curr_cim_rev, changeset = get_provider_version(virt, server)
     if curr_cim_rev >= libvirt_cim_ectp_changes:
         cn_names2 = ["VirtualSystemMigrationService", "DiskPool", "NetworkPool",
-                     "ProcessorPool", "MemoryPool"]
+                     "ProcessorPool", "MemoryPool", "AllocationCapabilities"]
         cn_names.extend(cn_names2)
     if curr_cim_rev >= libvirt_cim_input_graphics_ectp:
         cn_names.append("ConsoleRedirectionService")
@@ -136,6 +136,11 @@
         if profile.InstanceID not in unsupp_prof:
             profiles_instid_list.append(profile.InstanceID)
 
+    for prof_id in profiles_instid_list:
+        if prof_id == "CIM:DSP1041-ResourceAllocation-1.1.0c" and\
+           796 <= curr_cim_rev < 818:
+            profiles_instid_list.remove(prof_id)
+
     return status, profiles_instid_list 
 
 @do_main(sup_types)




More information about the Libvirt-cim mailing list