diff options
| author | Jenkins <jenkins@review.openstack.org> | 2015-01-16 21:14:08 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2015-01-16 21:14:08 +0000 |
| commit | b9e50a716d9ee5fa33e23621ddbe467837d941c7 (patch) | |
| tree | ab6cebc80d1c06f998c85d43329362ffa1e7f2d1 /openstackclient/tests | |
| parent | ee62718dc8585f3260ca89886d7bf8546931053a (diff) | |
| parent | fff4a1cd23057160af13f157a6fde2c172fae7a9 (diff) | |
| download | python-openstackclient-b9e50a716d9ee5fa33e23621ddbe467837d941c7.tar.gz | |
Merge "Add helpful messages when authN'ing with password"
Diffstat (limited to 'openstackclient/tests')
| -rw-r--r-- | openstackclient/tests/common/test_clientmanager.py | 7 | ||||
| -rw-r--r-- | openstackclient/tests/fakes.py | 1 |
2 files changed, 6 insertions, 2 deletions
diff --git a/openstackclient/tests/common/test_clientmanager.py b/openstackclient/tests/common/test_clientmanager.py index 9e9964ed..3b2b976b 100644 --- a/openstackclient/tests/common/test_clientmanager.py +++ b/openstackclient/tests/common/test_clientmanager.py @@ -127,7 +127,8 @@ class TestClientManager(utils.TestCase): client_manager = clientmanager.ClientManager( auth_options=FakeOptions(os_auth_url=fakes.AUTH_URL, os_username=fakes.USERNAME, - os_password=fakes.PASSWORD), + os_password=fakes.PASSWORD, + os_project_name=fakes.PROJECT_NAME), api_version=API_VERSION, verify=False, ) @@ -184,6 +185,7 @@ class TestClientManager(utils.TestCase): auth_options=FakeOptions(os_auth_url=fakes.AUTH_URL, os_username=fakes.USERNAME, os_password=fakes.PASSWORD, + os_project_name=fakes.PROJECT_NAME, os_auth_type='v2password'), api_version=API_VERSION, verify='cafile', @@ -219,7 +221,8 @@ class TestClientManager(utils.TestCase): # test password auth params = dict(os_auth_url=fakes.AUTH_URL, os_username=fakes.USERNAME, - os_password=fakes.PASSWORD) + os_password=fakes.PASSWORD, + os_project_name=fakes.PROJECT_NAME) self._select_auth_plugin(params, '2.0', 'v2password') self._select_auth_plugin(params, '3', 'v3password') self._select_auth_plugin(params, 'XXX', 'password') diff --git a/openstackclient/tests/fakes.py b/openstackclient/tests/fakes.py index e25751d6..d37555e3 100644 --- a/openstackclient/tests/fakes.py +++ b/openstackclient/tests/fakes.py @@ -25,6 +25,7 @@ AUTH_TOKEN = "foobar" AUTH_URL = "http://0.0.0.0" USERNAME = "itchy" PASSWORD = "scratchy" +PROJECT_NAME = "poochie" TEST_RESPONSE_DICT = fixture.V2Token(token_id=AUTH_TOKEN, user_name=USERNAME) |
