[openstack-qa] Return codes for OpenStack APIs
Christopher Yeoh
cyeoh at au1.ibm.com
Thu Jan 31 02:30:55 UTC 2013
On Wed, 30 Jan 2013 22:54:50 +0000
Daryl Walleck <daryl.walleck at RACKSPACE.COM> wrote:
> I'm a proponent of checking the exact code. To me, its part of the
> API contract. From a practical point, it has also helped our
> automated tests catch bugs that nearly slipped by.
+1
We should always test for the exact code. Even if it is not a formal
part of the specification we want to make sure that the status code
does not change accidentally and only intentionally, in which case the
test can be updated.
Chris.
--
cyeoh at au1.ibm.com
More information about the openstack-qa
mailing list