[Libvirt-cim] [PATCH] [TEST] change AllocationCapabilities expected error string

Dan Smith danms at us.ibm.com
Wed Apr 9 23:48:59 UTC 2008


KR> However, a provider can fail for a number of reasons and return the
KR> same error code for each one. Unfortunately (in the case anyway), CIM
KR> has such a small subset of return codes. So you can't accurately
KR> confirm that the test failed for the proper reason.

Well, we can return provider-specific error codes in addition to the
CIM-standard ones.  We could conceivably add those into places where
we need a more information about a particular failure case.

Also, if we're not expecting an error, we should be sure to FAIL if
the return is not CMPI_RC_OK, and then try to resolve the error
code/message to a specific case if possible.

-- 
Dan Smith
IBM Linux Technology Center
Open Hypervisor Team
email: danms at us.ibm.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvirt-cim/attachments/20080409/dfe4f2a1/attachment.sig>


More information about the Libvirt-cim mailing list