keystonemiddleware/keystonemiddleware/tests/unit/auth_token
Jorge Merlino e05466c5f4 Remove cache invalidation when using expired token
This can create a race condition for long running services that reuse
their token (eg. Kubernetes Cinder CSI plugin) in this case for
example:

1 [user] Asks nova to attach a volume to a server
2 ...the user's token expires
3 [user] Asks cinder if the volume has been attached
4 [nova] Asks cinder to attach the volume

In step 3 the token is marked as invalid in the cache and step 4 fails
even if allow_expired is true

Closes-Bug: #1987355
Change-Id: Ice8e34440a5fe1baa370646ed70b5e085c4af70e
2022-12-12 20:16:14 +00:00
..
__init__.py Move unit tests into tests.unit 2015-03-11 17:03:54 -05:00
base.py Identify the keystone service when raising 503 2018-02-20 17:32:41 +01:00
test_auth.py use oslo.log instead of logging 2017-01-13 03:24:18 +00:00
test_auth_token_middleware.py Remove cache invalidation when using expired token 2022-12-12 20:16:14 +00:00
test_base_middleware.py Use unittest.mock instead of third party mock 2020-04-18 11:53:42 -05:00
test_cache.py Fix KeystoneMiddleware memcachepool abstraction 2018-07-18 11:56:43 -07:00
test_config.py Use unittest.mock instead of third party mock 2020-04-18 11:53:42 -05:00
test_connection_pool.py Use unittest.mock instead of third party mock 2020-04-18 11:53:42 -05:00
test_memcache_crypt.py Fix py3 byte/string error 2017-10-11 10:21:06 -05:00
test_request.py Rename _v3_to_v2_catalog to _normalize_catalog 2019-12-20 14:37:43 -06:00
test_user_auth_plugin.py Remove v2.0 functionality 2019-11-27 10:52:23 -06:00