keystonemiddleware/keystonemiddleware/tests/unit
Jorge Merlino f602fa718d 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
(cherry picked from commit e05466c5f4)
2022-12-21 16:56:26 +00:00
..
audit Fix logging notifier unit test 2022-08-09 14:33:32 +00:00
auth_token Remove cache invalidation when using expired token 2022-12-21 16:56:26 +00:00
__init__.py Move unit tests into tests.unit 2015-03-11 17:03:54 -05:00
client_fixtures.py Add validation of app cred access rules 2019-07-15 16:05:59 -07:00
test_access_rules.py Add validation of app cred access rules 2019-07-15 16:05:59 -07:00
test_ec2_token_middleware.py Use unittest.mock instead of third party mock 2020-04-18 11:53:42 -05:00
test_entry_points.py Define entry points for filter factories for Paste Deployment 2015-11-06 12:16:44 -06:00
test_fixtures.py Add project_name to the auth_token fixture 2016-01-13 15:10:36 +11:00
test_oauth2_token_middleware.py OAuth2.0 Client Credentials Grant Flow Support 2022-08-23 09:39:18 +00:00
test_opts.py Add validation of app cred access rules 2019-07-15 16:05:59 -07:00
test_s3_token_middleware.py Use unittest.mock instead of third party mock 2020-04-18 11:53:42 -05:00
utils.py Remove references to 'sys.version_info' 2021-04-27 10:27:47 +08:00