glance/glance/tests/unit
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 Use more specific asserts in unit tests 2016-08-04 21:17:52 +02:00
async Adding constraints around qemu-img calls 2016-09-26 13:28:31 -05:00
common Extracted HTTP response codes to constants in tests 2016-10-06 15:17:06 +00:00
v1 Extracted HTTP response codes to constants in tests 2016-10-06 15:17:06 +00:00
v2 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
base.py Don't use config option sqlite_db 2016-08-16 13:42:02 +08:00
fake_rados.py Fixes rbd _delete_image snapshot with missing image 2013-10-07 23:15:49 +01:00
test_auth.py Extracted HTTP response codes to constants in tests 2016-10-06 15:17:06 +00:00
test_cache_middleware.py Extracted HTTP response codes to constants in tests 2016-10-06 15:17:06 +00:00
test_cached_images.py Improved coverage for glance.api.* 2014-06-15 17:44:09 +00:00
test_context.py Unify using six.moves.range rename everywhere 2015-02-25 12:05:36 +00:00
test_context_middleware.py Support Unicode request_id on Python 3 2015-11-27 15:44:54 +01:00
test_db.py Use more specific asserts in unit tests 2016-08-04 21:17:52 +02:00
test_db_metadef.py Don't use slashes for long lines - use parentheses instead 2015-08-16 07:21:13 +00:00
test_domain.py Use more specific asserts in unit tests 2016-08-04 21:17:52 +02:00
test_domain_proxy.py Fix for Image members not generating notifications 2016-01-25 04:50:58 -08:00
test_glance_manage.py Add check to limit maximum value of max_rows 2016-05-30 09:20:27 +05:30
test_glance_replicator.py Extracted HTTP response codes to constants in tests 2016-10-06 15:17:06 +00:00
test_glare_plugin_loader.py Correct some misspelt words in glance 2016-05-13 14:24:41 +08:00
test_glare_type_definition_framework.py Allow mutable argument to be passed to BinaryObject artifacts 2016-02-12 16:13:17 +03:00
test_image_cache.py Port image cache to Python 3 2015-08-16 11:49:45 +02:00
test_image_cache_client.py Port rpc and wsgi to Python 3 2015-10-13 12:27:50 +02:00
test_jsonpatchmixin.py Fix mutable defaults in tests 2015-09-28 14:36:27 +03:00
test_manage.py Remove DB downgrade 2016-09-01 10:53:08 +08:00
test_migrations.py Remove DB downgrade 2016-09-01 10:53:08 +08:00
test_misc.py Port v1.test_registry_api to Python 3 2015-10-22 22:53:05 +02:00
test_notifier.py Removing deprecated variable aliases from oslo_messaging 2016-08-24 09:51:29 +08:00
test_policy.py Change default policy to admin 2016-06-17 15:38:51 +00:00
test_quota.py Add __ne__ built-in function 2016-07-13 15:33:39 +08:00
test_schema.py Fix assertEqual arguments order 2014-09-19 00:25:18 +08:00
test_scrubber.py Fixes the possibility of leaving orphaned data 2015-09-17 19:01:27 +00:00
test_store_glare.py Move Glance Artifact Repository API to separate endpoint 2016-02-10 18:34:55 +03:00
test_store_image.py Use cursive for signature verification 2016-08-31 12:18:10 -07:00
test_store_location.py Upgrade to hacking 0.10 2015-01-13 15:03:27 +01:00
test_versions.py Extracted HTTP response codes to constants in tests 2016-10-06 15:17:06 +00:00
utils.py Fix cursive named arguments 2016-09-09 13:05:16 +00:00