keystone/keystone/tests/unit/protection/v3
Lance Bragstad d2cc4c83c0 Consolidate user protection tests
This commit removes user policies from policy.v3cloudsample.json. By
incorporating system-scope, domain-scope, project-scope, and default
roles, we've effectively made these policies obsolete. We can simplify
what we maintain and provide a more consistent, unified view of
default user behavior by removing them.

This commit also adds an important filter to the GET /v3/users API by
making sure the users in the response are filtered properly if the API
was called with a domain-scoped token. This is needed in case domain
configuration isn't setup and short-circuits normalization of the
domain ID, which sometimes comes from the token if it is
domain-scoped.  Regardless of domain configuration being used, we
should protect against cases where data leaks across domains in the
name of security.

Finally, this commit moves a couple of tests from test_v3_protection
to test_users protection tests that ensures we do reasonable filtering
while normalizing domain IDs. The remaining tests from
test_v3_protection have been removed because they are no longer
applicable. These tests were testing an HTTP 403 was returned when a
domain users attempted to filter users for domains they didn't have
authorization on. We don't use this approach consistently in keystone.
Most other places where filtering is implemented, we ignore invalid
filters and instead return an empty list. For domain users attempting
to fish information out of another domain, they will receive an empty
list to be consistent with other parts of the API.

Change-Id: I60b2e2b8af172c369eab0eb2c29f056f5c98ad16
Parial-Bug: 1806762
2019-03-26 12:58:15 +00:00
..
__init__.py Implement scope_type checking for credentials 2018-10-29 15:01:29 +00:00
test_assignment.py Add role assignment testing for project users 2019-03-25 18:01:42 +00:00
test_credentials.py Make system members the same as system readers for credentials 2019-03-05 21:25:16 +00: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 Implement system reader functionality for grants 2019-03-22 21:08:25 +00:00
test_groups.py Implement system admin role in groups API 2019-02-11 17:50:03 +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 Merge "Implement domain admin functionality for projects" 2019-03-21 18:29:08 +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-21 18:59:16 +00:00
test_users.py Consolidate user protection tests 2019-03-26 12:58:15 +00:00