summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDolph Mathews <dolph.mathews@gmail.com>2013-05-17 08:39:10 -0500
committerMorgan Fainberg <m@metacloud.com>2013-08-08 11:06:33 -0700
commit55ca347e2527249aab82a3e98afed06f95490b7c (patch)
treee45cbbdb5dd053d403947d681d09cae615aad8bb /tests
parenta4243e14b8d4c2006a2854a7dcfccc2229577f5d (diff)
downloadkeystone-55ca347e2527249aab82a3e98afed06f95490b7c.tar.gz
keystone-55ca347e2527249aab82a3e98afed06f95490b7c.tar.xz
keystone-55ca347e2527249aab82a3e98afed06f95490b7c.zip
Configurable max password length (bug 1175906)
DocImpact Change-Id: I1b1de8f7e07afe8af8a5cbb83de7f935cea04670
Diffstat (limited to 'tests')
-rw-r--r--tests/test_auth.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_auth.py b/tests/test_auth.py
index db5314be..e8e6c7a9 100644
--- a/tests/test_auth.py
+++ b/tests/test_auth.py
@@ -179,7 +179,8 @@ class AuthBadRequests(AuthTest):
def test_authenticate_password_too_large(self):
"""Verify sending large 'password' raises the right exception."""
- body_dict = _build_user_auth(username='FOO', password='0' * 8193)
+ length = CONF.identity.max_password_length + 1
+ body_dict = _build_user_auth(username='FOO', password='0' * length)
self.assertRaises(exception.ValidationSizeError,
self.controller.authenticate,
{}, body_dict)