glance/glance/tests/unit
whoami-rajat 98a1e792c6 Support cinder multiple stores
This patch updates the location URL of the legacy images while
upgrading from single cinder store to multiple stores.
It does that with the help of lazy loading logic i.e. while
GET images call, it checks the location URL and metadata
of the image against the configured store ids and updates
images to respective stores on the basis of volume type (comparing
image-volume's type with the configured cinder_volume_type).
Legacy image URL:
cinder://<volume-id>
New image URL:
cinder://<store-id>/<volume-id>

NOTE: bumping lower-constraints/requirements of glance-store to 2.3.0 as
it includes changes[1] that are a hard requirement for cinder multiple
stores to work with glance

[1] https://review.opendev.org/#/c/746556/

Change-Id: I087a89c20813378fea8ff22ddf81d7a10c220db3
Implements: blueprint multiple-cinder-backend-support
2020-09-07 09:07:42 +00:00
..
api Make glance-api able to do async tasks in WSGI mode 2020-07-24 11:13:45 -07:00
async_ Add ImageLock to base flow checks 2020-08-24 06:41:13 -07:00
common Support cinder multiple stores 2020-09-07 09:07:42 +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 Support cinder multiple stores 2020-09-07 09:07:42 +00:00
__init__.py Empty files shouldn't contain copyright nor license 2013-12-24 22:39:05 -06:00
base.py Support cinder multiple stores 2020-09-07 09:07:42 +00:00
fake_rados.py Fixes rbd _delete_image snapshot with missing image 2013-10-07 23:15:49 +01:00
fixtures.py Stop to use the __future__ module. 2020-06-02 20:14:31 +02:00
test_auth.py Introduce ''mock_object'' method to base test class 2018-08-09 12:40:12 -04:00
test_cache_manage.py Fix broken glance-cache-manage utility 2020-07-23 07:04:52 +00:00
test_cache_middleware.py Merge "Use unittest.mock instead of mock" 2020-07-03 18:27:53 +00:00
test_cached_images.py Cleanup remove api v1 and registry code 2020-07-14 10:38:19 +00:00
test_context.py Add context.elevated() helper for getting admin privileges 2020-07-10 08:59:53 -07: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 Handle atomic image properties separately 2020-08-24 06:41:13 -07: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 Refactor TaskFactory and Executor to take an admin ImageRepo 2020-07-10 08:59:53 -07:00
test_domain_proxy.py Add image_delete_property_atomic() helper 2020-08-07 12:13:22 -07:00
test_gateway.py Refactor TaskFactory and Executor to take an admin ImageRepo 2020-07-10 08:59:53 -07: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 Stop to use the __future__ module. 2020-06-02 20:14:31 +02:00
test_image_cache.py Stop to use the __future__ module. 2020-06-02 20:14:31 +02:00
test_manage.py Stop to use the __future__ module. 2020-06-02 20:14:31 +02: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 Drop collections.abc compat handling 2020-07-09 10:49:12 -05:00
test_quota.py Use unittest.mock instead of mock 2020-06-10 11:11:13 +02:00
test_schema.py Fix assertEqual arguments order 2014-09-19 00:25:18 +08:00
test_scrubber.py Use unittest.mock instead of mock 2020-06-10 11:11:13 +02:00
test_store_image.py Inspect upload/import stream and set virtual_size 2020-08-05 08:42:04 -07:00
test_store_location.py Use unittest.mock instead of third party mock 2020-04-20 15:07:00 +00:00
test_test_utils.py Add FakeData generator test utility 2020-08-24 06:41:13 -07:00
test_versions.py Use application_url in API version document 2020-02-06 12:57:56 +00:00
utils.py Inspect upload/import stream and set virtual_size 2020-08-05 08:42:04 -07:00