diff options
| author | Dean Troyer <dtroyer@gmail.com> | 2015-03-03 20:29:38 -0600 |
|---|---|---|
| committer | Steve Martinelli <stevemar@ca.ibm.com> | 2015-03-10 03:16:12 +0000 |
| commit | 749920bc65d4859eeaf44d16ae94f842d88af178 (patch) | |
| tree | 17fb3120501a7936d5583caaee0c3d3cd52892c1 /openstackclient/tests/common | |
| parent | dc00d7c758a431845750974cc10a2734e14f9d03 (diff) | |
| download | python-openstackclient-749920bc65d4859eeaf44d16ae94f842d88af178.tar.gz | |
Move OSC auth plugins so they can be found
The plugin detection at the top of openstackclient.api.auth did not
detect the plugins at the bottom of that file because, surprise,
they had not been declared yet so the entry points were ignored.
Move both plugin subclasses into openstackclient.api.auth_plugin.
Fix a problem with the password callback that was otherwise made
worse with this change.
Closes-Bug: 1428912
Change-Id: Idc3b72534071e0013c8922884a8bc14137509a0f
Diffstat (limited to 'openstackclient/tests/common')
| -rw-r--r-- | openstackclient/tests/common/test_clientmanager.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/openstackclient/tests/common/test_clientmanager.py b/openstackclient/tests/common/test_clientmanager.py index ce85e737..3648bf57 100644 --- a/openstackclient/tests/common/test_clientmanager.py +++ b/openstackclient/tests/common/test_clientmanager.py @@ -20,6 +20,7 @@ from keystoneclient import service_catalog from oslo_serialization import jsonutils from openstackclient.api import auth +from openstackclient.api import auth_plugin from openstackclient.common import clientmanager from openstackclient.common import exceptions as exc from openstackclient.tests import fakes @@ -100,7 +101,7 @@ class TestClientManager(utils.TestCase): ) self.assertIsInstance( client_manager.auth, - auth.TokenEndpoint, + auth_plugin.TokenEndpoint, ) self.assertFalse(client_manager._insecure) self.assertTrue(client_manager._verify) |
