summaryrefslogtreecommitdiff
path: root/openstack_auth/tests
diff options
context:
space:
mode:
authorRadomir Dopieralski <openstack@sheep.art.pl>2018-08-20 16:41:30 +0200
committerRadomir Dopieralski <openstack@sheep.art.pl>2018-08-21 13:32:26 +0200
commit16c4f4c3a294040bb87386156dab49f2b782ce21 (patch)
treeb8e17bb301e024c46b8773e3a3a87eb3c72a762c /openstack_auth/tests
parent122bbcace9383989c2e2e60fae25458ea584c9b7 (diff)
downloadhorizon-16c4f4c3a294040bb87386156dab49f2b782ce21.tar.gz
Don't expose endpoint URLs in the login form
Instead of using endpoint URLs to designate regions in the login form and its cookies, use numbers. This way, if internal URLs are configured, they won't be exposed to the outside. Change-Id: Ifed089e7cee3075bf2dc5d1ce77b0e1b1d091ca0 Closes-bug: #1787943
Diffstat (limited to 'openstack_auth/tests')
-rw-r--r--openstack_auth/tests/unit/test_auth.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/openstack_auth/tests/unit/test_auth.py b/openstack_auth/tests/unit/test_auth.py
index 826c5c69e..b2f0179f1 100644
--- a/openstack_auth/tests/unit/test_auth.py
+++ b/openstack_auth/tests/unit/test_auth.py
@@ -89,7 +89,7 @@ class OpenStackAuthTestsMixin(object):
auth=plugin)
def get_form_data(self, user):
- return {'region': settings.OPENSTACK_KEYSTONE_URL,
+ return {'region': "default",
'domain': DEFAULT_DOMAIN,
'password': user.password,
'username': user.name}