[openstack-qa] Return codes for OpenStack APIs

David Kranz david.kranz at qrclab.com
Wed Jan 30 22:08:01 UTC 2013


There have been recent submissions to Tempest with code like:

self.assertTrue(resp['status'].startswith('2'))

It had been the consensus that we should be checking for actual status 
codes. Some projects document the return
codes and others don't. This example was from a call to keystone to list 
services and the result is not documented but the list tenants
calls says it could return 200 or 203. There should be a statement from 
each project about whether it considers the return code to be part of 
the spec.
Ideally this would be uniform across projects but it is not. Users of 
the API really need to be able to know this. Any comments?

   -David



More information about the openstack-qa mailing list