# HG changeset patch
# User Guolian Yun <yunguol(a)cn.ibm.com>
# Date 1212158090 -28800
# Node ID b7ad266f271375c29adbcd89579ad78af718d11a
# Parent 3ac66cf562f082546883c1de0d748471b557cd39
[TEST] Update Memory.01&03 for LXC support
Signed-off-by: Guolian Yun <yunguol(a)cn.ibm.com>
diff -r 3ac66cf562f0 -r b7ad266f2713 suites/libvirt-cim/cimtest/Memory/01_memory.py
--- a/suites/libvirt-cim/cimtest/Memory/01_memory.py Fri May 30 00:24:45 2008 +0800
+++ b/suites/libvirt-cim/cimtest/Memory/01_memory.py Fri May 30 22:34:50 2008 +0800
@@ -33,7 +33,7 @@
from CimTest.Globals import do_main
from XenKvmLib.const import CIM_REV
-sup_types = ['Xen', 'KVM', 'XenFV']
+sup_types = ['Xen', 'KVM', 'XenFV', 'LXC']
test_dom = "test_domain"
mem = 256 #MB
diff -r 3ac66cf562f0 -r b7ad266f2713 suites/libvirt-cim/cimtest/Memory/03_mem_gi_errs.py
--- a/suites/libvirt-cim/cimtest/Memory/03_mem_gi_errs.py Fri May 30 00:24:45 2008 +0800
+++ b/suites/libvirt-cim/cimtest/Memory/03_mem_gi_errs.py Fri May 30 22:34:50 2008 +0800
@@ -133,7 +133,7 @@
from CimTest.Globals import logger, CIM_USER, do_main
from CimTest.Globals import CIM_PASS, CIM_NS
-sup_types = ['Xen', 'KVM', 'XenFV']
+sup_types = ['Xen', 'KVM', 'XenFV', 'LXC']
expr_values = {
"invalid_ccname" : {'rc' : pywbem.CIM_ERR_NOT_FOUND, \
diff -r 3ac66cf562f0 -r b7ad266f2713 suites/libvirt-cim/lib/XenKvmLib/devices.py
--- a/suites/libvirt-cim/lib/XenKvmLib/devices.py Fri May 30 00:24:45 2008 +0800
+++ b/suites/libvirt-cim/lib/XenKvmLib/devices.py Fri May 30 22:34:50 2008 +0800
@@ -85,6 +85,9 @@
pass
class KVM_Memory(CIM_Memory):
+ pass
+
+class LXC_Memory(CIM_Memory):
pass
class Xen_Processor(CIM_Processor):