horizon/openstack_auth/tests/unit
Adrian Turjak 88fb018840 Rework DEFAULT_SERVICE_REGIONS
DEFAULT_SERVICE_REGIONS is cumbersome when you have
more than one keystone endpoint and all you want to do
is set a global default service region.

This adds '*' as an optional fallback key to mean global default.
If an endpoint matches it will take precedence over the '*' value.

This also fixes the precedence order for DEFAULT_SERVICE_REGIONS
so that a user controlled cookie is used instead when that cookie
is valid for the given catalog. This changes the way the setting
works, but retains the intended result the setting was originally
intended for.

Change-Id: Ieefbd642d853fcfcf22a17d9edcc7daae72790a4
blueprint: global-default-service-region
Closes-Bug: #1772345
Related-Bugs: #1359774 #1703390
2018-07-17 13:58:24 +12:00
..
__init__.py openstack_auth: Move test files to match module structure 2017-12-09 21:37:12 +09:00
test_auth.py Drop Django <= 1.10 support 2018-03-03 07:33:23 +09:00
test_policy.py Fix api.keystone.is_cloud_admin/is_domain_admin handling with new policies 2018-01-17 15:14:33 +01:00
test_user.py openstack_auth: Move test files to match module structure 2017-12-09 21:37:12 +09:00
test_utils.py Rework DEFAULT_SERVICE_REGIONS 2018-07-17 13:58:24 +12:00