[Libvirt-cim] [PATCH] [TEST] Update VirtualSystemSettingDataComponent.04 for LXC support

yunguol at cn.ibm.com yunguol at cn.ibm.com
Thu Jun 12 14:00:33 UTC 2008


# HG changeset patch
# User Guolian Yun <yunguol at cn.ibm.com>
# Date 1213279228 -28800
# Node ID 2fff464cfcf81a56ffb627085eebf995a54b3833
# Parent  254bc5464030a03b6f791fd49acd208f6ec1db23
[TEST] Update VirtualSystemSettingDataComponent.04 for LXC support

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

diff -r 254bc5464030 -r 2fff464cfcf8 suites/libvirt-cim/cimtest/VirtualSystemSettingDataComponent/04_vssdc_rev_errs.py
--- a/suites/libvirt-cim/cimtest/VirtualSystemSettingDataComponent/04_vssdc_rev_errs.py	Wed Jun 11 20:56:07 2008 +0800
+++ b/suites/libvirt-cim/cimtest/VirtualSystemSettingDataComponent/04_vssdc_rev_errs.py	Thu Jun 12 22:00:28 2008 +0800
@@ -66,15 +66,15 @@
 from CimTest.Globals import do_main, logger
 from CimTest.Globals import CIM_USER, CIM_PASS, CIM_NS
 
-sup_types = ['Xen', 'XenFV', 'KVM']
+sup_types = ['Xen', 'XenFV', 'KVM', 'LXC']
 
 test_dom     = "domu1"
 
 expr_values = {
     "INVALID_InstID_Keyname"   : { 'rc'   : pywbem.CIM_ERR_NOT_FOUND, \
-                     'desc' : 'No such instance (InstanceID)' }, \
+                     'desc' : 'No such instance' }, \
     "INVALID_InstID_Keyval"    : { 'rc'   : pywbem.CIM_ERR_NOT_FOUND, \
-                     'desc' : 'No such instance (InstanceID)'}
+                     'desc' : 'No such instance'}
 }
 
 def try_invalid_assoc(name_val, i, field, virt="Xen"):
@@ -120,6 +120,8 @@
   
     if options.virt == "Xen" or options.virt == "XenFV":
         inst_id = "Xen:%s" % test_dom
+    elif options.virt == "LXC":
+        inst_id = "LXC:%s" % test_dom
     else:
         inst_id = "KVM:%s" % test_dom
   




More information about the Libvirt-cim mailing list