Fix status_code of "list versions" API

The status code of "list versions" API is 300 because the API method
is decorated with MULTIPLE_CHOICES[1] and the unit test[2] expects the
code. In addition, the corresponding Tempest test[3] also verifies 300
as the code. So it is not necessary to write the other status codes on
the api-ref.

[1]: http://git.openstack.org/cgit/openstack/cinder/tree/cinder/api/versions.py?id=a4a5fac7564503a09751db98d2a4f8be3766577a#n123
[2]: http://git.openstack.org/cgit/openstack/cinder/tree/cinder/tests/unit/api/test_versions.py?id=a4a5fac7564503a09751db98d2a4f8be3766577a#n66
[3]: Id5791665d8435fac7552733b0c1126cee4359d00

Change-Id: Id28e26fca0adbdcfb0d905f52ca697a74db3be75
This commit is contained in:
Ken'ichi Ohmichi 2017-03-21 14:27:49 -07:00
parent a4a5fac756
commit 8564ac6cbd
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ List All Api Versions
Lists information for all Block Storage API versions.
Normal response codes: 200,202,300
Normal response codes: 300
Error response codes: computeFault(400, 500), serviceUnavailable(503), badRequest(400),
unauthorized(401), forbidden(403), badMethod(405), itemNotFound(404), conflict(409)