keystone/keystone/tests/unit/protection/v3
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
..
__init__.py Implement scope_type checking for credentials 2018-10-29 15:01:29 +00:00
test_assignment.py Fix role_assignments role.id filter 2020-01-28 21:02:57 -08:00
test_credentials.py Fix credential list for project members 2019-12-06 14:25:23 -08:00
test_domains.py Allow project users to retrieve domains 2019-01-21 20:46:05 +00:00
test_endpoints.py Add tests for project users interacting with endpoints 2019-01-08 22:32:50 +00:00
test_grants.py Make system admin policies consistent for grants 2019-03-26 17:00:15 +00:00
test_groups.py Add domain scope support for group policies 2019-04-01 13:08:48 +00:00
test_identity_providers.py Add tests for project users interacting with idps 2019-01-08 22:15:51 +00:00
test_limits.py Update limit policies for system admin 2019-01-09 14:56:48 +00:00
test_mappings.py Add tests for project users interacting with mappings 2019-02-19 01:48:36 +00:00
test_projects.py Implement domain admin functionality for projects 2019-03-25 17:49:50 +00:00
test_protocols.py Add tests for project users interacting with protocols 2019-01-08 20:40:17 +00:00
test_regions.py Add tests for project users interacting with regions 2019-02-11 17:51:10 +00:00
test_registered_limits.py Add tests for project users interacting with registered limits 2019-01-08 18:16:48 +00:00
test_roles.py Add tests for project users interacting with roles 2019-02-27 21:56:15 +00:00
test_service_providers.py Add tests for project users interacting with sps 2019-01-04 17:59:07 +00:00
test_services.py Add tests for project users interacting with services 2019-02-28 15:02:34 +00:00
test_system_assignments.py Test domain and project users against group system assignment API 2019-03-26 09:06:01 +01:00
test_users.py Consolidate user protection tests 2019-03-26 20:29:02 +00:00