glance/glance/tests/unit/v2
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
..
__init__.py Adding versioned namespaces in test dir 2012-03-25 13:28:45 -07:00
test_discovery_image_import.py Copy existing image in multiple stores 2020-02-12 05:32:46 +00:00
test_discovery_stores.py Rethinking filesystem access 2019-10-01 09:53:48 +00:00
test_image_actions_resource.py Implement and Enable Community Images 2017-01-18 17:56:12 +00:00
test_image_data_resource.py Use unittest.mock instead of third party mock 2020-04-20 15:07:00 +00:00
test_image_members_resource.py Fix member create to handle unicode characters 2017-12-26 19:42:05 +00:00
test_image_tags_resource.py Extracted HTTP response codes to constants in tests 2016-10-06 15:17:06 +00:00
test_images_resource.py Improve lazy loading mechanism for multiple stores 2020-07-14 16:20:22 +00:00
test_metadef_resources.py Use unittest.mock instead of third party mock 2020-04-20 15:07:00 +00:00
test_schemas_resource.py Change location metadata key 'backend' to 'store' 2019-08-08 04:52:51 +00:00
test_tasks_resource.py Use unittest.mock instead of third party mock 2020-04-20 15:07:00 +00:00