# HG changeset patch
# User Guolian Yun <yunguol(a)cn.ibm.com>
# Date 1212115646 -28800
# Node ID 25c2af6bfccc73196fff0ce96f7162b8b22d0057
# Parent 3ac66cf562f082546883c1de0d748471b557cd39
[TEST] Resubmit ElementConforms.01&03&04 for LXC support
Signed-off-by: Guolian Yun <yunguol(a)cn.ibm.com>
diff -r 3ac66cf562f0 -r 25c2af6bfccc
suites/libvirt-cim/cimtest/ElementConforms/01_forward.py
--- a/suites/libvirt-cim/cimtest/ElementConforms/01_forward.py Fri May 30 00:24:45 2008
+0800
+++ b/suites/libvirt-cim/cimtest/ElementConforms/01_forward.py Fri May 30 10:47:26 2008
+0800
@@ -42,7 +42,7 @@
from CimTest import Globals
from CimTest.ReturnCodes import PASS, FAIL
-sup_types = ['Xen', 'XenFV', 'KVM']
+sup_types = ['Xen', 'XenFV', 'KVM', 'LXC']
test_dom = "domU"
def verify_cs(item, id):
diff -r 3ac66cf562f0 -r 25c2af6bfccc
suites/libvirt-cim/cimtest/ElementConforms/03_ectp_fwd_errs.py
--- a/suites/libvirt-cim/cimtest/ElementConforms/03_ectp_fwd_errs.py Fri May 30 00:24:45
2008 +0800
+++ b/suites/libvirt-cim/cimtest/ElementConforms/03_ectp_fwd_errs.py Fri May 30 10:47:26
2008 +0800
@@ -60,9 +60,8 @@
from CimTest import Globals
from CimTest.Globals import logger, CIM_USER, CIM_PASS, do_main
-sup_types = ['Xen', 'XenFV', 'KVM']
+sup_types = ['Xen', 'XenFV', 'KVM', 'LXC']
-bug = '92642'
expr_values = {
"INVALID_InstID_Keyname" : { 'rc' : pywbem.CIM_ERR_FAILED,
\
@@ -82,7 +81,7 @@
k = j * 2
keys[name_val[k]] = name_val[k+1]
ret_val = try_assoc(conn, classname, ac_classname, keys, field_name=field, \
- expr_values=expr_values[field], bug_no=bug)
+ expr_values=expr_values[field], bug_no="")
if ret_val != PASS:
logger.error("------ FAILED: %s------" % field)
name_val[i] = temp
diff -r 3ac66cf562f0 -r 25c2af6bfccc
suites/libvirt-cim/cimtest/ElementConforms/04_ectp_rev_errs.py
--- a/suites/libvirt-cim/cimtest/ElementConforms/04_ectp_rev_errs.py Fri May 30 00:24:45
2008 +0800
+++ b/suites/libvirt-cim/cimtest/ElementConforms/04_ectp_rev_errs.py Fri May 30 10:47:26
2008 +0800
@@ -89,9 +89,8 @@
from CimTest.ReturnCodes import PASS, FAIL
from CimTest.Globals import logger, CIM_USER, CIM_PASS, CIM_NS, do_main
-sup_types = ['Xen', 'XenFV', 'KVM']
+sup_types = ['Xen', 'XenFV', 'KVM', 'LXC']
-bug = '92642'
test_dom = "domU"
cs_values = {
@@ -122,7 +121,7 @@
else:
expr_values = cs_values
ret_val = try_assoc(conn, classname, ac_classname, keys, field_name=field, \
- expr_values=expr_values[field], bug_no=bug)
+ expr_values=expr_values[field], bug_no="")
if ret_val != PASS:
logger.error("------ FAILED: %s------" % field)
name_val[i] = temp