glance/glance/tests/unit
Dan Smith 2d5e84390e Fix import failure status reporting when all_stores_must_succeed=True
As described in the referenced bug, if a store fails with
all_stores_must_succeed=True, we never add that store to the
failed list, nor remove it from the pending-import list, leaving a
polling client to wait forever. This fixes that by making the revert
handler of the import task do that if we are the one that failed.

Closes-Bug: #1891352
Change-Id: I3571960bbfb4f8f0a716937b541f5b1594cd0e16
(cherry picked from commit 737dfca83c)
2020-08-25 11:37:22 -07:00
..
api Use unittest.mock instead of third party mock 2020-04-20 15:07:00 +00:00
async_ Fix import failure status reporting when all_stores_must_succeed=True 2020-08-25 11:37:22 -07:00
common Heartbeat the actual work of the task 2020-08-25 11:35:05 -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-25 11:33:45 -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 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_manage.py Fix broken glance-cache-manage utility 2020-07-23 20:35:29 +00: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 Add image_delete_property_atomic() helper 2020-08-25 11:34:56 -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 Use unittest.mock instead of third party mock 2020-04-20 15:07:00 +00:00
test_domain_proxy.py Add image_delete_property_atomic() helper 2020-08-25 11:34:56 -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 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