# HG changeset patch
# User Guolian Yun <yunguol(a)cn.ibm.com>
# Date 1210745607 25200
# Node ID 4ebde2a615e2b2449d1334409f0374fdea26a279
# Parent 6a8318103e42f7e1891011550d3a9f7d7f86839c
[TEST] update ComputerSystem.01&03 tc for LXC support
Signed-off-by: Guolian Yun <yunguol(a)cn.ibm.com>
diff -r 6a8318103e42 -r 4ebde2a615e2 suites/libvirt-cim/cimtest/ComputerSystem/01_enum.py
--- a/suites/libvirt-cim/cimtest/ComputerSystem/01_enum.py Tue May 13 23:09:39 2008 -0700
+++ b/suites/libvirt-cim/cimtest/ComputerSystem/01_enum.py Tue May 13 23:13:27 2008 -0700
@@ -30,7 +30,7 @@ from CimTest import Globals
from CimTest import Globals
from CimTest.ReturnCodes import PASS, FAIL
-SUPPORTED_TYPES = ['Xen', 'KVM', 'XenFV']
+SUPPORTED_TYPES = ['Xen', 'KVM', 'XenFV', 'LXC']
@do_main(SUPPORTED_TYPES)
def main():
diff -r 6a8318103e42 -r 4ebde2a615e2
suites/libvirt-cim/cimtest/ComputerSystem/03_defineVS.py
--- a/suites/libvirt-cim/cimtest/ComputerSystem/03_defineVS.py Tue May 13 23:09:39 2008
-0700
+++ b/suites/libvirt-cim/cimtest/ComputerSystem/03_defineVS.py Tue May 13 23:13:27 2008
-0700
@@ -35,7 +35,7 @@ from CimTest.Globals import do_main
from CimTest.Globals import do_main
from CimTest.ReturnCodes import PASS, FAIL
-sup_types = ['Xen', 'KVM', 'XenFV']
+sup_types = ['Xen', 'KVM', 'XenFV', 'LXC']
test_dom = "domU1"
@do_main(sup_types)
diff -r 6a8318103e42 -r 4ebde2a615e2 suites/libvirt-cim/lib/XenKvmLib/computersystem.py
--- a/suites/libvirt-cim/lib/XenKvmLib/computersystem.py Tue May 13 23:09:39 2008 -0700
+++ b/suites/libvirt-cim/lib/XenKvmLib/computersystem.py Tue May 13 23:13:27 2008 -0700
@@ -69,6 +69,9 @@ class KVM_ComputerSystem(CIM_System):
class KVM_ComputerSystem(CIM_System):
pass
+class LXC_ComputerSystem(CIM_System):
+ pass
+
def get_cs_class(virt):
if virt in virt_types:
return eval(get_typed_class(virt, 'ComputerSystem'))