glance/glance
Gábor Antal 8a8e5bf56c Extracted HTTP response codes to constants in tests
There are several places in the source code where
HTTP response codes are used as numeric values.

These values are used from six.moves and the
numeric values are replaced by constants.

All of the used status codes were replaced with symbolic constants
from six.moves.http_client.
More about six.moves.http_client can be found at [2],
under the table "Supported renames:".

Also, this change improves code readibility.

This patchset does not extract numeric values from
the code itself, but it can be found at [1].

[1]: Ib9e26dcea927e96e65c626c18421621d3a29a64d
[2]: https://pythonhosted.org/six/#module-six.moves

Change-Id: Idfc7b043552f428f01ac3e47b270ee0639a8f5bc
Closes-Bug: #1520159
2016-10-06 15:17:06 +00:00
..
api Merge "Bump up Glance API minor version to 2.4" 2016-09-15 18:12:27 +00:00
async Adding constraints around qemu-img calls 2016-09-26 13:28:31 -05:00
cmd Remove DB downgrade 2016-09-01 10:53:08 +08:00
common Merge "Fix using filter() to meet python2,3" 2016-10-01 17:04:12 +00:00
contrib Add 'vhdx' disk format. 2016-07-28 16:34:00 +00:00
db Merge "Fix using filter() to meet python2,3" 2016-10-01 17:04:12 +00:00
domain Add __ne__ built-in function 2016-07-13 15:33:39 +08:00
glare Add in missing log hints 2016-06-09 07:59:15 -07:00
hacking Hacking checks for not using dict iteration calls 2016-01-25 21:54:08 -08:00
image_cache Remove "Services which consume this" section 2016-08-29 14:23:10 -05:00
locale Imported Translations from Zanata 2016-06-07 07:01:13 +00:00
quota Add __ne__ built-in function 2016-07-13 15:33:39 +08:00
registry Fix a small markup typo 2016-09-03 17:48:50 +05:30
tests Extracted HTTP response codes to constants in tests 2016-10-06 15:17:06 +00:00
__init__.py Empty files shouldn't contain copyright nor license 2013-12-24 22:39:05 -06:00
context.py Use oslo.context features 2016-07-12 13:40:33 +10:00
gateway.py Fix for Image members not generating notifications 2016-01-25 04:50:58 -08:00
i18n.py Drop use of 'oslo' namespace package 2015-04-28 18:57:45 +00:00
location.py Fix cursive named arguments 2016-09-09 13:05:16 +00:00
notifier.py Merge "Removing deprecated variable aliases from oslo_messaging" 2016-08-25 06:18:22 +00:00
opts.py Add registry_client_opts to glance-cache.conf.sample 2016-08-18 17:37:44 +02:00
schema.py Import i18n functions directly 2015-12-07 18:20:43 +03:00
scrubber.py Merge "Improving help text for send_identity_headers opt" 2016-09-01 03:20:56 +00:00
version.py Remove vim header 2014-01-14 16:03:28 +00:00