glance/glance/tests
Dan Smith 35e6c57bc9 Fix failing namespace list delete race
If a namespace is deleted by another client while we are doing a
namespace list operation, we will fail the list with NotFound if we
try to pull the resource_type_associations list. The latter re-queries
the DB for the namespace and will raise NotFound to us. This is
especially bad because the namespace being deleted need not even
belong to the caller of the list, as is the case in a tempest run.

This makes us catch the failure and continue the operation, reporting
no associations so that the client gets a consistent view and no
error.

Closes-Bug: #1973631
Change-Id: I09fc9164a08f42507d2aec44c5b382a72f232571
2022-05-16 12:29:55 -07:00
..
etc Use default policies in our tests 2021-06-30 16:12:25 +00:00
functional Merge "Fix tests for logging connection info" 2022-05-10 20:05:32 +00:00
gate Remove six.text_type, six.binary_type usage 2022-01-27 14:54:00 +00:00
integration Remove six.moves.http_client usage 2022-01-27 14:54:05 +00:00
unit Fix failing namespace list delete race 2022-05-16 12:29:55 -07:00
var Support importing OVA/OVF package to Glance 2016-02-24 14:35:19 -08:00
__init__.py Remove remaining six.moves usage 2022-01-27 16:37:11 +00:00
stubs.py Cleanup remove api v1 and registry code 2020-07-14 10:38:19 +00:00
test_hacking.py Remove remaining six.moves usage 2022-01-27 16:37:11 +00:00
utils.py tests: Remove check for os.set_inheritable 2022-01-27 16:39:06 +00:00