glance/glance/tests/functional
Dan Smith ba37ea3227 Check get_image(s) in the API
This includes a change to catch Forbidden and convert to NotFound.
The previous Forbidden handler was not only correct (it shoud hide
the permissions error with "not found") but it was actually dead code,
since the DB was performing its own checks and would never raise
Forbidden.

This also includes a change of the default policy for get_images
to include the other states, like get_image does. I think this was
just an oversight in the original RBAC patches, which didn't matter
because they weren't really being honored strictly.

Partially implements: blueprint policy-refactor

Change-Id: I70100cd7f01da803e9740cea1f7ce7ae18ad6919
2021-08-04 07:56:05 -07:00
..
db Add user_get_uploading_count() to DB API 2021-07-02 08:29:06 -07:00
serial Make our functional tests compatible with RBAC 2021-07-16 07:58:46 -07:00
v2 Check get_image(s) in the API 2021-08-04 07:56:05 -07:00
__init__.py Add api_patch() to SynchronousAPIBase 2021-07-27 07:59:17 -07:00
ft_utils.py Make image stage set image.size 2021-06-21 07:19:01 -07:00
store_utils.py Stop to use the __future__ module. 2020-06-02 20:14:31 +02:00
test_api.py Bump Images API version to 2.11 2020-09-29 17:47:45 -04:00
test_cache_middleware.py Make our functional tests compatible with RBAC 2021-07-16 07:58:46 -07:00
test_client_exceptions.py Fix broken glance-cache-manage utility 2020-07-23 07:04:52 +00:00
test_client_redirects.py Fix broken glance-cache-manage utility 2020-07-23 07:04:52 +00:00
test_cors_middleware.py Make our functional tests compatible with RBAC 2021-07-16 07:58:46 -07:00
test_glance_manage.py Convert to string before using assertIn 2018-06-04 16:34:29 -04:00
test_gzip_middleware.py Fix assertEqual arguments order 2014-09-19 00:25:18 +08:00
test_healthcheck_middleware.py Python3: fix logs/glance.tests.functional.test_healthcheck_middleware 2016-12-01 17:43:22 +01:00
test_logging.py Remove registry related functional and unit tests 2019-12-18 09:23:37 +00:00
test_reload.py Remove usages of SSL related config options in utils 2020-03-17 22:38:09 -07:00
test_sqlite.py Allow glance tests to run on Windows 2019-03-13 16:41:11 +02:00
test_wsgi.py Make our functional tests compatible with RBAC 2021-07-16 07:58:46 -07:00