glance/glance/tests/unit
Dan Smith b093ae3514 Add image_delete_property_atomic() helper
This adds a new DB API method to atomically delete a property on an image
in a way that we can be sure that it is deleted one and only once, and
without affecting the rest of the image. This can be used in conjunction
with image_set_property_atomic() to create and delete properties for locking
without the risk of clobbering other image data in the process.

Change-Id: I0b71a7df04cd330749f35b07f96a120b49b412c7
2020-08-07 12:13:22 -07:00
..
api Make glance-api able to do async tasks in WSGI mode 2020-07-24 11:13:45 -07:00
async_ Add tests for _ImportToStore.execute() 2020-08-07 12:13:22 -07:00
common Stream-friendly disk format inspection module 2020-08-05 08:41:55 -07: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 Flesh out FakeImage for extra_properties 2020-08-07 12:13:22 -07: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 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 Add image_delete_property_atomic() helper 2020-08-07 12:13:22 -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 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