summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJamie Lennox <jamielennox@redhat.com>2014-08-26 10:36:43 +1000
committerJamie Lennox <jamielennox@redhat.com>2014-08-26 10:39:27 +1000
commitad42c5768b02e9e86a0d1c7888039c785322999f (patch)
treef6de70f42eba62e93e727c5e7655459abc4042b1
parente3a3dff00ff40d2cd161d0cd50b1549ae675b0f2 (diff)
downloadkeystonemiddleware-ad42c5768b02e9e86a0d1c7888039c785322999f.tar.gz
Always supply a username to auth_token tests setup
Whilst the v2.Password plugin (which is used by default) will accept a None value for username this is incorrect behaviour. We should always provide at least a username so that the plugin can do sensible error handling if it is not present. Change-Id: Id790b52f3b06240923f605754c7ffcf4ff136062 Closes-Bug: #1361444
-rw-r--r--keystonemiddleware/tests/test_auth_token_middleware.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/keystonemiddleware/tests/test_auth_token_middleware.py b/keystonemiddleware/tests/test_auth_token_middleware.py
index bf64995..dc92f5b 100644
--- a/keystonemiddleware/tests/test_auth_token_middleware.py
+++ b/keystonemiddleware/tests/test_auth_token_middleware.py
@@ -226,6 +226,7 @@ class BaseAuthTokenMiddlewareTest(testtools.TestCase):
'signing_dir': client_fixtures.CERTDIR,
'auth_version': auth_version,
'auth_uri': 'https://keystone.example.com:1234',
+ 'admin_user': uuid.uuid4().hex,
}
self.auth_version = auth_version
@@ -526,6 +527,7 @@ class GeneralAuthTokenMiddlewareTest(BaseAuthTokenMiddlewareTest,
conf = {
'revocation_cache_time': 24,
'auth_uri': 'https://keystone.example.com:1234',
+ 'admin_user': uuid.uuid4().hex
}
middleware = auth_token.AuthProtocol(self.fake_app, conf)
self.assertEqual(middleware._token_revocation_list_cache_timeout,