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

Kaitlin Rupert kaitlin at linux.vnet.ibm.com
Wed Apr 9 23:30:30 UTC 2008


Dan Smith wrote:
> KR> The hope here is that the error messages don't change often.
> KR> Thoughts?
> 
> I think the only thing you should depend on is the return code.
> Interpreting the error string is likely to break.
> 


Agreed - verifying the strings has been an upkeep headache.

However, a provider can fail for a number of reasons and return the same 
error code for each one. Unfortunately (in the case anyway), CIM has 
such a small subset of return codes. So you can't accurately confirm 
that the test failed for the proper reason.
-- 
Kaitlin Rupert
IBM Linux Technology Center
kaitlin at linux.vnet.ibm.com




More information about the Libvirt-cim mailing list