From 8564ac6cbd634cd3d611400d4caa05e057a04718 Mon Sep 17 00:00:00 2001 From: Ken'ichi Ohmichi Date: Tue, 21 Mar 2017 14:27:49 -0700 Subject: [PATCH] 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 --- api-ref/source/v3/api-versions.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api-ref/source/v3/api-versions.inc b/api-ref/source/v3/api-versions.inc index a112640ef11..41ec0e8a073 100644 --- a/api-ref/source/v3/api-versions.inc +++ b/api-ref/source/v3/api-versions.inc @@ -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)