Skip to content

Commit 70b3376

Browse files
committed
Merge branch 'master' of github.com:IBM/python-sdk-core
2 parents 6c4fe02 + 8e1c253 commit 70b3376

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

ibm_cloud_sdk_core/base_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def __init__(self, vcap_services_name, url, username=None, password=None,
128128
if (self.username is None or self.password is None) and self.token_manager is None:
129129
raise ValueError(
130130
'You must specify your IAM api key or username and password service '
131-
'credentials (Note: these are different from your Bluemix id)')
131+
'credentials (Note: these are different from your IBM Cloud id)')
132132

133133
def _load_from_credential_file(self, service_name, separator='='):
134134
"""

test/test_base_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def test_no_auth():
141141
service = AnyServiceV1('2017-07-07')
142142
service.request('GET', url='')
143143
except ValueError as err:
144-
assert str(err) == 'You must specify your IAM api key or username and password service credentials (Note: these are different from your Bluemix id)'
144+
assert str(err) == 'You must specify your IAM api key or username and password service credentials (Note: these are different from your IBM Cloud id)'
145145

146146
def test_when_apikey_is_username():
147147
service1 = AnyServiceV1('2017-07-07', username='apikey', password='xxxxx')

test/test_iam_token_manager.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
@responses.activate
66
def test_request_token():
7-
iam_url = "https://iam.bluemix.net/identity/token"
7+
iam_url = "https://iam.cloud.ibm.com/identity/token"
88
response = """{
99
"access_token": "oAeisG8yqPY7sFR_x66Z15",
1010
"token_type": "Bearer",
@@ -23,7 +23,7 @@ def test_request_token():
2323

2424
@responses.activate
2525
def test_refresh_token():
26-
iam_url = "https://iam.bluemix.net/identity/token"
26+
iam_url = "https://iam.cloud.ibm.com/identity/token"
2727
response = """{
2828
"access_token": "oAeisG8yqPY7sFR_x66Z15",
2929
"token_type": "Bearer",
@@ -70,7 +70,7 @@ def test_is_refresh_token_expired():
7070

7171
@responses.activate
7272
def test_get_token():
73-
iam_url = "https://iam.bluemix.net/identity/token"
73+
iam_url = "https://iam.cloud.ibm.com/identity/token"
7474
token_manager = IAMTokenManager("iam_apikey", iam_url=iam_url)
7575
token_manager.user_access_token = 'user_access_token'
7676

@@ -154,7 +154,7 @@ def test_request_token_auth_in_ctor():
154154

155155
@responses.activate
156156
def test_request_token_auth_in_ctor_client_id_only():
157-
iam_url = "https://iam.bluemix.net/identity/token"
157+
iam_url = "https://iam.cloud.ibm.com/identity/token"
158158
response = """{
159159
"access_token": "oAeisG8yqPY7sFR_x66Z15",
160160
"token_type": "Bearer",
@@ -175,7 +175,7 @@ def test_request_token_auth_in_ctor_client_id_only():
175175

176176
@responses.activate
177177
def test_request_token_auth_in_ctor_secret_only():
178-
iam_url = "https://iam.bluemix.net/identity/token"
178+
iam_url = "https://iam.cloud.ibm.com/identity/token"
179179
response = """{
180180
"access_token": "oAeisG8yqPY7sFR_x66Z15",
181181
"token_type": "Bearer",

0 commit comments

Comments
 (0)