glance/glance/tests/unit
Dan Smith 16a5431c66 Make glance-api able to do async tasks in WSGI mode
This teaches glance-api how to do async threading things when it is
running in pure-WSGI mode. In order to do that, a refactoring of things
that currently depend on eventlet is required.

It adds a [wsgi]/task_pool_threads configuration knob, which is used
in the case of pure-WSGI and native threads to constrain the number
of threads in that pool (and thus the task parallelism). This will
allow tuning by the operator, but also lets us default that to just
a single thread in the backport of these fixes so that we can avoid
introducing a new larger footprint in the backport unexpectedly.

Partial-Bug: #1888713
Depends-On: https://review.opendev.org/#/c/742047/
Change-Id: Ie15028b75fb8518ec2b0c0c0386d21782166f759
2020-07-24 11:13:45 -07:00
..
api Make glance-api able to do async tasks in WSGI mode 2020-07-24 11:13:45 -07:00
async_ Make glance-api able to do async tasks in WSGI mode 2020-07-24 11:13:45 -07:00
common Make glance-api able to do async tasks in WSGI mode 2020-07-24 11:13:45 -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 Make glance-api able to do async tasks in WSGI mode 2020-07-24 11:13: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 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_set_property_atomic() helper 2020-07-16 13:15:55 +01: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_set_property_atomic() helper 2020-07-16 13:15:55 +01: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