keystone/keystone/tests
Colleen Murphy af470fd639 Fix role_assignments role.id filter
Without this patch, if there are multiple role assignments on the system
and they are not all the same role, querying for role assignments with
/v3/role_assignments?role.id={role_id} may leak some role assignments
that don't match the role_id, making the returned results incorrect.
This patch fixes the issue by using a list comprehension instead of a
for loop over a list that was being modified within the loop.

Change-Id: Icfce3b14abb55c6fef3de1b314cee22fc8b1d08c
Closes-bug: #1858012
(cherry picked from commit c2d8830662)
(cherry picked from commit 4d413f1eba)
2020-01-28 21:02:57 -08:00
..
common Add missing translation import to common.auth.py 2018-11-28 14:23:41 +00:00
functional Update keystone functional tests 2018-04-18 21:04:59 +00:00
hacking Use pycodestyle in place of pep8 2018-11-20 17:16:01 +00:00
unit Fix role_assignments role.id filter 2020-01-28 21:02:57 -08:00
__init__.py Move existing tests to unit 2015-02-13 15:54:29 -06:00