[Libvirt-cim] [PATCH] [TEST] #2 Add branch of err code to RPCS/04
Kaitlin Rupert
kaitlin at linux.vnet.ibm.com
Thu Apr 2 00:24:52 UTC 2009
> rpcs_conn = eval("rpcs_service." + get_typed_class(options.virt, \
> "ResourcePoolConfigurationService"))(options.ip)
> + curr_cim_rev, changeset = get_provider_version(options.virt, options.ip)
> + if curr_cim_rev >= libvirt_cim_child_pool_rev:
> + cim_errno = pywbem.CIM_ERR_INVALID_PARAMETER
> + else:
> + cim_errno = pywbem.CIM_ERR_NOT_SUPPORTED
> try:
> rpcs_conn.CreateChildResourcePool()
> except pywbem.CIMError, (err_no, desc):
Sorry Daisy, I didn't have a chance to look at the first revision.
Agreed - you need to branch this test. However, this method is now
supported. So, for libvirt-cim >= 837, this test should attempt to
create network pool and verify that network pool is created.
--
Kaitlin Rupert
IBM Linux Technology Center
kaitlin at linux.vnet.ibm.com
More information about the Libvirt-cim
mailing list