glance/glance/tests/unit
Abhishek Kekane 9a104acbae Improve lazy loading mechanism for multiple stores
Glance has a facility lazy loading for legacy images which will be called
on get/list api calls to add store information in image's location metadata
based on location URL of image. Even if admin decides to change the store
names in glance-api.conf same will also be updated in location metadata
for all images related to that particular store. Current implementation of
legacy image performs this operation on each get/list call as location metadata
is not getting updated in database or it doesn't handle to perform store name
check in glance-api.conf.

Improvements done:
1. Save updated location metadata information in database permenantly
2. Add logic to perform lazy loading only if store information is not present
in location metadata or store present in location metadata is not defined in
glance's enbaled_backends configuration option.

Change-Id: I789fa7adfb459e7861c90a51f418a635c0c22244
Closes-Bug: #1886374
(cherry picked from commit ab0e5268a9)
2020-07-14 16:20:22 +00:00
..
api Use unittest.mock instead of third party mock 2020-04-20 15:07:00 +00:00
async_ Don't include plugins on 'copy-image' import 2020-07-10 10:56:42 +00:00
common Improve lazy loading mechanism for multiple stores 2020-07-14 16:20:22 +00:00
image_cache Use unittest.mock instead of third party mock 2020-04-20 15:07:00 +00:00
keymgr Delete secret key on image deletion 2019-09-05 03:16:39 +02:00
v2 Improve lazy loading mechanism for multiple stores 2020-07-14 16:20:22 +00:00
__init__.py Empty files shouldn't contain copyright nor license 2013-12-24 22:39:05 -06:00
base.py Use unittest.mock instead of third party mock 2020-04-20 15:07:00 +00:00
fake_rados.py Fixes rbd _delete_image snapshot with missing image 2013-10-07 23:15:49 +01:00
fixtures.py Fix DeprecationWarnings for RequestContext.tenant/user usage 2019-02-06 09:59:36 -05:00
test_auth.py Introduce ''mock_object'' method to base test class 2018-08-09 12:40:12 -04:00
test_cache_middleware.py Add ability to import image into multi-stores 2020-02-10 09:39:01 +01:00
test_cached_images.py Improved coverage for glance.api.* 2014-06-15 17:44:09 +00:00
test_context.py Use new oslo.context arg names 2017-11-27 10:20:10 -06:00
test_context_middleware.py Fix DeprecationWarnings for RequestContext.tenant/user usage 2019-02-06 09:59:36 -05:00
test_data_migration_framework.py Use unittest.mock instead of third party mock 2020-04-20 15:07:00 +00:00
test_db.py Use unittest.mock instead of third party mock 2020-04-20 15:07:00 +00: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 unittest.mock instead of third party mock 2020-04-20 15:07:00 +00:00
test_domain_proxy.py Use unittest.mock instead of third party mock 2020-04-20 15:07:00 +00:00
test_glance_manage.py Use unittest.mock instead of third party mock 2020-04-20 15:07:00 +00:00
test_glance_replicator.py Use unittest.mock instead of third party mock 2020-04-20 15:07:00 +00:00
test_image_cache.py Remove registry related functional and unit tests 2019-12-18 09:23:37 +00:00
test_manage.py Use unittest.mock instead of third party mock 2020-04-20 15:07:00 +00:00
test_misc.py Port v1.test_registry_api to Python 3 2015-10-22 22:53:05 +02:00
test_notifier.py Use unittest.mock instead of third party mock 2020-04-20 15:07:00 +00:00
test_policy.py Use unittest.mock instead of third party mock 2020-04-20 15:07:00 +00:00
test_quota.py Use unittest.mock instead of third party mock 2020-04-20 15:07:00 +00:00
test_schema.py Fix assertEqual arguments order 2014-09-19 00:25:18 +08:00
test_scrubber.py Use unittest.mock instead of third party mock 2020-04-20 15:07:00 +00:00
test_store_image.py Use unittest.mock instead of third party mock 2020-04-20 15:07:00 +00:00
test_store_location.py Use unittest.mock instead of third party mock 2020-04-20 15:07:00 +00:00
test_versions.py Use application_url in API version document 2020-02-06 12:57:56 +00:00
utils.py Use unittest.mock instead of third party mock 2020-04-20 15:07:00 +00:00