diff options
author | Jamie Lennox <jamielennox@redhat.com> | 2015-03-11 12:57:22 +1100 |
---|---|---|
committer | Jamie Lennox <jamielennox@redhat.com> | 2015-03-17 09:54:17 +1100 |
commit | d4a4acecbe2cb173e4dc3b355c8d9f90212c5e9c (patch) | |
tree | 7d04672e8cafd9574b57aea6ace49fee5b6ad57e /keystoneclient/tests | |
parent | c30cf7807c1cce4f7bf9833db66a4138faf76268 (diff) | |
download | python-keystoneclient-d4a4acecbe2cb173e4dc3b355c8d9f90212c5e9c.tar.gz |
Split v3 authentication file into module
The V3 authentication plugins file contained the existing plugins as
well as the base class. As we look to add new plugins it is simpler if
we break this file up.
Change-Id: I42b222a2012ea10491450d6b91c2008178dc7671
Diffstat (limited to 'keystoneclient/tests')
-rw-r--r-- | keystoneclient/tests/unit/auth/test_identity_v3.py | 6 | ||||
-rw-r--r-- | keystoneclient/tests/unit/auth/test_password.py | 5 | ||||
-rw-r--r-- | keystoneclient/tests/unit/auth/test_token.py | 5 |
3 files changed, 16 insertions, 0 deletions
diff --git a/keystoneclient/tests/unit/auth/test_identity_v3.py b/keystoneclient/tests/unit/auth/test_identity_v3.py index 29cbb0e..e7eed40 100644 --- a/keystoneclient/tests/unit/auth/test_identity_v3.py +++ b/keystoneclient/tests/unit/auth/test_identity_v3.py @@ -15,6 +15,7 @@ import uuid from keystoneclient import access from keystoneclient.auth.identity import v3 +from keystoneclient.auth.identity.v3 import base as v3_base from keystoneclient import client from keystoneclient import exceptions from keystoneclient import fixture @@ -488,3 +489,8 @@ class V3IdentityPlugin(utils.TestCase): self.assertEqual(auth_url, a.token_url) self.assertEqual(auth_url + '?nocatalog', self.requests.last_request.url) + + def test_symbols(self): + self.assertIs(v3.AuthMethod, v3_base.AuthMethod) + self.assertIs(v3.AuthConstructor, v3_base.AuthConstructor) + self.assertIs(v3.Auth, v3_base.Auth) diff --git a/keystoneclient/tests/unit/auth/test_password.py b/keystoneclient/tests/unit/auth/test_password.py index c5067c0..2891d8f 100644 --- a/keystoneclient/tests/unit/auth/test_password.py +++ b/keystoneclient/tests/unit/auth/test_password.py @@ -15,6 +15,7 @@ import uuid from keystoneclient.auth.identity.generic import password from keystoneclient.auth.identity import v2 from keystoneclient.auth.identity import v3 +from keystoneclient.auth.identity.v3 import password as v3_password from keystoneclient.tests.unit.auth import utils @@ -61,3 +62,7 @@ class PasswordTests(utils.GenericPluginTestCase): self.assertEqual(set(allowed_opts), set(opts)) self.assertEqual(len(allowed_opts), len(opts)) + + def test_symbols(self): + self.assertIs(v3.Password, v3_password.Password) + self.assertIs(v3.PasswordMethod, v3_password.PasswordMethod) diff --git a/keystoneclient/tests/unit/auth/test_token.py b/keystoneclient/tests/unit/auth/test_token.py index 928e2b2..ce4c1cd 100644 --- a/keystoneclient/tests/unit/auth/test_token.py +++ b/keystoneclient/tests/unit/auth/test_token.py @@ -15,6 +15,7 @@ import uuid from keystoneclient.auth.identity.generic import token from keystoneclient.auth.identity import v2 from keystoneclient.auth.identity import v3 +from keystoneclient.auth.identity.v3 import token as v3_token from keystoneclient.tests.unit.auth import utils @@ -45,3 +46,7 @@ class TokenTests(utils.GenericPluginTestCase): self.assertEqual(set(allowed_opts), set(opts)) self.assertEqual(len(allowed_opts), len(opts)) + + def test_symbols(self): + self.assertIs(v3.Token, v3_token.Token) + self.assertIs(v3.TokenMethod, v3_token.TokenMethod) |