# HG changeset patch
# User Guolian Yun <yunguol(a)cn.ibm.com>
# Date 1207039131 25200
# Node ID 0ade340e36829a6cbaac60e9451cd02ccbd00816
# Parent 5d47437104551b638aa75e2e525e49ec4b41e3ec
[TEST] ResourcePoolConfigurationCapabilities.02 for XenFV and KVM support
Signed-off-by: Guolian Yun <yunguol(a)cn.ibm.com>
diff -r 5d4743710455 -r 0ade340e3682
suites/libvirt-cim/cimtest/ResourcePoolConfigurationCapabilities/02_rpcc_gi_errs.py
---
a/suites/libvirt-cim/cimtest/ResourcePoolConfigurationCapabilities/02_rpcc_gi_errs.py Mon
Mar 31 07:54:19 2008 -0700
+++
b/suites/libvirt-cim/cimtest/ResourcePoolConfigurationCapabilities/02_rpcc_gi_errs.py Tue
Apr 01 01:38:51 2008 -0700
@@ -4,7 +4,7 @@
#
# Authors:
# Deepti B. Kalakeri<dkalaker(a)in.ibm.com>
-#
+# Guolian Yun <yunguol(a)cn.ibm.com>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public
@@ -48,12 +48,13 @@ import sys
import sys
import pywbem
from XenKvmLib import assoc
+from XenKvmLib.classes import get_typed_class
from CimTest.Globals import log_param, logger, CIM_USER, CIM_PASS, CIM_NS
from CimTest.Globals import do_main
from CimTest.ReturnCodes import PASS, FAIL
from XenKvmLib.common_util import try_getinstance
-sup_types = ['Xen']
+sup_types = ['Xen', 'XenFV', 'KVM']
expr_values = {
"invalid_instid" : { 'rc' :
pywbem.CIM_ERR_NOT_FOUND, \
@@ -66,7 +67,7 @@ def main():
log_param()
status = PASS
conn = assoc.myWBEMConnection('http://%s' % options.ip, (CIM_USER, CIM_PASS),
CIM_NS)
- classname = 'Xen_ResourcePoolConfigurationCapabilities'
+ classname = get_typed_class(options.virt,
'ResourcePoolConfigurationCapabilities')
field = 'INVALID_Instid_KeyName'
keys = { field : "RPCC" }
Show replies by date