glance/glance/tests/unit
Fei Long Wang f70b72b78b Add support for API message localization
Add support for doing language resolution for a request,
based on the Accept-Language HTTP header. For example,
an HTTP client can receive API messages in Chinese even
if the locale language of the server is English.

The underscore (_) method is initialized so that it returns
openstack.common.gettextutils.Message objects. The locale
of these Message objects is set when exceptions with which
they are associated are raised in the context of an HTTP
request.

docImpact
Partially implements bp i18n-messages

Signed-off-by: Fei Long Wang <flwang@cn.ibm.com>
Signed-off-by: John Warren <jswarren@us.ibm.com>

Change-Id: I352cda57fe119022c59c6c813b5c8053765b2d3c
2014-03-04 14:18:28 +08:00
..
api Use six.StringIO/BytesIO instead of StringIO.StringIO 2014-02-26 09:06:33 +08:00
common Add support for API message localization 2014-03-04 14:18:28 +08:00
v1 Use six.StringIO/BytesIO instead of StringIO.StringIO 2014-02-26 09:06:33 +08:00
v2 Use six.StringIO/BytesIO instead of StringIO.StringIO 2014-02-26 09:06:33 +08:00
__init__.py Empty files shouldn't contain copyright nor license 2013-12-24 22:39:05 -06:00
base.py VMware Datastore storage backend 2014-01-30 18:14:15 -08:00
fake_rados.py Fixes rbd _delete_image snapshot with missing image 2013-10-07 23:15:49 +01:00
test_auth.py Merge "Add support for PartialTask list" 2014-02-22 12:10:27 +00:00
test_cache_middleware.py Modify assert statement when comparing with None 2014-02-19 14:37:41 +08:00
test_cached_images.py Remove vim header 2014-01-14 16:03:28 +00:00
test_cinder_store.py Remove vim header 2014-01-14 16:03:28 +00:00
test_context.py Fix logging context to include user_identity 2014-02-21 17:19:31 +01:00
test_context_middleware.py Modify assert statement when comparing with None 2014-02-19 14:37:41 +08:00
test_db.py Add support for PartialTask list 2014-02-12 17:05:23 +05:30
test_domain.py Merge "Add support for PartialTask list" 2014-02-22 12:10:27 +00:00
test_domain_proxy.py Add support for PartialTask list 2014-02-12 17:05:23 +05:30
test_filesystem_store.py Use six.StringIO/BytesIO instead of StringIO.StringIO 2014-02-26 09:06:33 +08:00
test_glance_replicator.py Use six.StringIO/BytesIO instead of StringIO.StringIO 2014-02-26 09:06:33 +08:00
test_gridfs_store.py Use six.StringIO/BytesIO instead of StringIO.StringIO 2014-02-26 09:06:33 +08:00
test_http_store.py Enable hacking H301 and disable H304, H302 2014-02-18 16:05:18 +04:00
test_image_cache.py Use six.StringIO/BytesIO instead of StringIO.StringIO 2014-02-26 09:06:33 +08:00
test_image_cache_client.py Replace deprecated method assertEquals 2013-11-30 05:33:48 -08:00
test_manage.py Sync common db code from Oslo 2014-02-27 14:14:21 +02:00
test_migrations.conf Refactor data migration tests 2013-02-25 21:14:09 +00:00
test_migrations.py Merge "Enable F841 check" 2014-02-18 08:08:14 +00:00
test_misc.py Remove vim header 2014-01-14 16:03:28 +00:00
test_notifier.py Merge "Add support for PartialTask list" 2014-02-22 12:10:27 +00:00
test_policy.py Add support for PartialTask list 2014-02-12 17:05:23 +05:30
test_quota.py Replacement mox by mock 2014-02-18 14:41:43 +04:00
test_rbd_store.py Use six.StringIO/BytesIO instead of StringIO.StringIO 2014-02-26 09:06:33 +08:00
test_s3_store.py Use six.StringIO/BytesIO instead of StringIO.StringIO 2014-02-26 09:06:33 +08:00
test_schema.py Fix up trivial License mismatches 2013-08-27 22:50:16 +02:00
test_scrubber.py Enable F841 check 2014-02-13 16:54:12 +04:00
test_sheepdog_store.py Use six.StringIO/BytesIO instead of StringIO.StringIO 2014-02-26 09:06:33 +08:00
test_store_base.py Merge "Change assertTrue(isinstance()) by optimal assert" 2014-01-19 05:04:52 +00:00
test_store_image.py Enable hacking H703 check 2014-01-27 14:32:04 +04:00
test_store_location.py Modify assert statement when comparing with None 2014-02-19 14:37:41 +08:00
test_swift_store.py Add support for API message localization 2014-03-04 14:18:28 +08:00
test_versions.py Merge "Change assertTrue(isinstance()) by optimal assert" 2014-01-19 05:04:52 +00:00
test_vmware_store.py VMware storage backend should use oslo.vmware 2014-02-27 16:15:07 -08:00
utils.py Set image size to None after removing all locations 2014-01-11 12:25:55 +08:00