now uses tenantName vs. tenantId to auth
This commit is contained in:
parent
96e04e64e9
commit
42e726ffed
@ -256,7 +256,7 @@ class HTTPClient(httplib2.Http):
|
||||
"password": self.apikey}}}
|
||||
|
||||
if self.projectid:
|
||||
body['auth']['tenantId'] = self.projectid
|
||||
body['auth']['tenantName'] = self.projectid
|
||||
|
||||
token_url = urlparse.urljoin(url, "tokens")
|
||||
resp, body = self.request(token_url, "POST", body=body)
|
||||
|
@ -45,7 +45,7 @@ class AuthenticateAgainstKeystoneTests(utils.TestCase):
|
||||
body = {'auth': {
|
||||
'passwordCredentials': {'username': cs.client.user,
|
||||
'password': cs.client.apikey},
|
||||
'tenantId': cs.client.projectid, }}
|
||||
'tenantName': cs.client.projectid, }}
|
||||
|
||||
token_url = urlparse.urljoin(cs.client.auth_url, "tokens")
|
||||
mock_request.assert_called_with(token_url, "POST",
|
||||
@ -117,7 +117,7 @@ class AuthenticateAgainstKeystoneTests(utils.TestCase):
|
||||
body = {'auth': {
|
||||
'passwordCredentials': {'username': cs.client.user,
|
||||
'password': cs.client.apikey},
|
||||
'tenantId': cs.client.projectid,}}
|
||||
'tenantName': cs.client.projectid,}}
|
||||
|
||||
token_url = urlparse.urljoin(cs.client.auth_url, "tokens")
|
||||
mock_request.assert_called_with(token_url, "POST",
|
||||
|
Loading…
Reference in New Issue
Block a user