There are several places in the source code where HTTP response
codes are used as numeric values.
Status codes 200, 202, 204, 300, 400, 403, 404, 405 , 406 and 413 under
tests/unit/api/v2 and tests/unit/api/v3 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/434892 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=665775f9243 8029aed1b3ea488 bc82de934d7eaa
Committed: https:/
Submitter: Jenkins
Branch: master
commit 665775f92438029 aed1b3ea488bc82 de934d7eaa
Author: poojajadhav <email address hidden>
Date: Tue Jan 24 15:55:15 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, 300, 400, 403, 404, 405 , 406 and 413 under unit/api/ v2 and tests/unit/api/v3 are replaced with symbolic http_client thus improves code readability.
tests/
constants from six.moves.
More patches will be submitted to address other status codes.
Partial-Bug: #1520159 c33be9a182d9074 cc316241cb9
Change-Id: Iaa337432f9a368