Commit 03950ab1 authored by John C Boufford's avatar John C Boufford
Browse files

fixed broken test.

parent f37e5fdc
......@@ -23,5 +23,5 @@ class ApiDirectoryTest(unittest.TestCase):
api = ApiDirectory(self.client_id, self.secret, self.scope, self.token_url)
header = api.build_headers()
self.assertEqual(map['x-ibm-client-id'], self.client_id)
self.assertEqual(header['x-ibm-client-id'], self.client_id)
self.assertTrue('authorization' in header)
......@@ -119,7 +119,7 @@ class IamGroupCRUDTests(unittest.TestCase):
api = ApiDirectory(self.client_id, self.secret, self.scope, self.token_url)
name = "iamGroupTestJB"
encoded = urllib.parse.quote(name)
url_endpoint = 'mygroup/isValidName'
url_endpoint = 'isValidName'
url = IamGroupCRUDTests.url_base + '/' + url_endpoint + "/" + encoded
response = requests.get(
......@@ -140,7 +140,7 @@ class IamGroupCRUDTests(unittest.TestCase):
api = ApiDirectory(self.client_id, self.secret, self.scope, self.token_url)
name = "jbouffor"
encoded = urllib.parse.quote(name)
url_endpoint = 'mygroup/isValidName'
url_endpoint = 'isValidName'
url = IamGroupCRUDTests.url_base + '/' + url_endpoint + "/" + encoded
response = requests.get(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment