Merge "client HTTPClient __init__ fails if auth_url None"

This commit is contained in:
Jenkins 2014-12-02 09:48:02 +00:00 committed by Gerrit Code Review
commit 3398e424bf
2 changed files with 5 additions and 1 deletions
cinderclient

@ -137,7 +137,7 @@ class HTTPClient(object):
if not auth_url:
raise exceptions.EndpointNotFound()
self.auth_url = auth_url.rstrip('/')
self.auth_url = auth_url.rstrip('/') if auth_url else None
self.version = 'v1'
self.region_name = region_name
self.endpoint_type = endpoint_type

@ -209,6 +209,10 @@ class ClientTest(utils.TestCase):
test_get_call()
self.assertEqual([], self.requests)
def test_get_no_auth_url(self):
client.HTTPClient("username", "password",
"project_id", retries=0)
def test_post(self):
cl = get_authed_client()