There are several places in the source code where HTTP response
codes are used as numeric values.
Status codes 200, 202, 204, 400, 403, 404, 405 and 413 under
tests/functional, tests/tempest and tests/unit/api are replaced with
symbolic constants from six.moves.http_client thus improves code
readability. More patches will be submitted to address other status
codes.
Reviewed: https:/ /review. openstack. org/426750 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=90fed35450e e3cea562fbcf5fc e770e53b466941
Committed: https:/
Submitter: Jenkins
Branch: master
commit 90fed35450ee3ce a562fbcf5fce770 e53b466941
Author: poojajadhav <email address hidden>
Date: Mon Jan 23 21:05:34 2017 +0530
Extracted HTTP response codes to constants
There are several places in the source code where HTTP response
codes are used as numeric values.
Status codes 200, 202, 204, 400, 403, 404, 405 and 413 under functional, tests/tempest and tests/unit/api are replaced with http_client thus improves code
tests/
symbolic constants from six.moves.
readability. More patches will be submitted to address other status
codes.
Partial-Bug: #1520159 41dda2d33f4e062 9442bbbce4c
Change-Id: Idc4d3ee8469e7a