nova/nova/tests/unit/consoleauth
Christoph Manns 745f0b6da4 Fix stacktraces with redis caching backend
If you use redis as a caching backend and you delete a server with
no consoleauth tokens you'll get a stacktrace as an empty list is
passed down to the redis client and ultimately the redis server
which responds with an error, complaining about a wrong number
of arguments for the del command.
The code now checks if the list of tokens is empty and only calls
the caching backend if there are tokens available to delete.
This also may improve performance, as it no longer hands down an
empty list.

Closes-Bug: #1794812
Change-Id: Iffdd4e251bfa2bac1bfd49498e32b738843709de
(cherry picked from commit e5884a8fd5)
2018-10-01 07:50:53 +00:00
..
__init__.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
test_consoleauth.py Fix stacktraces with redis caching backend 2018-10-01 07:50:53 +00:00
test_rpcapi.py conf: remove *_topic config opts 2017-07-17 21:27:02 -07:00