[Libvirt-cim] [PATCH] [TEST] #2 Updating 04_reverse_errs.py tc of HostedDependency to work with/without sblim-base-provider
Kaitlin Rupert
kaitlin at linux.vnet.ibm.com
Fri Oct 17 16:24:42 UTC 2008
> +def verify_err_fields(cxml, server, conn, keys, classname,
> + assoc_classname, msg, field):
> + try:
> + ret = try_assoc(conn, classname, assoc_classname, keys,
> + field_name=field, expr_values=expr_values[field],
> + bug_no="")
> + if ret != PASS:
> + if classname == 'Linux_ComputerSystem':
> + return XFAIL_RC(bug_sblim)
> + else:
> + logger.error("--- FAILED: %s---", msg)
> + cxml.destroy(server)
You also need cxml.undefine() here.
> + acn = get_typed_class(virt, 'HostedDependency')
> + status, host_name, classname = get_host_info(server, virt)
> + if status:
> + logger.error("Unable to get host info")
> + cxml.destroy(server)
Same here.
> + msg = 'Invalid CreationClassName Key Value'
> + field='INVALID_CCNameValue'
> + keys = { 'CreationClassName' : field, 'Name' : host_name }
> + ret_value = verify_err_fields(cxml, server, conn, keys, classname,
> + acn, msg, field)
> + cxml.destroy(server)
Here as well.
> + return ret_value
--
Kaitlin Rupert
IBM Linux Technology Center
kaitlin at linux.vnet.ibm.com
More information about the Libvirt-cim
mailing list