glance/glance/tests
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
..
etc Add Policy enforcement for several Metadata Definition delete APIs 2020-04-06 14:47:05 +00:00
functional Use unittest.mock instead of third party mock 2020-04-20 15:07:00 +00:00
gate Separate out configuration tests 2019-03-22 13:01:14 -04:00
integration Allow glance tests to run on Windows 2019-03-13 16:41:11 +02:00
unit Improve lazy loading mechanism for multiple stores 2020-07-14 16:20:22 +00:00
var Support importing OVA/OVF package to Glance 2016-02-24 14:35:19 -08:00
__init__.py Allow glance tests to run on Windows 2019-03-13 16:41:11 +02:00
stubs.py Remove moxstubout usage 2018-10-28 10:16:34 -04:00
test_hacking.py Hacking checks for not using dict iteration calls 2016-01-25 21:54:08 -08:00
utils.py Use unittest.mock instead of third party mock 2020-04-20 15:07:00 +00:00