4
4
5
5
@responses .activate
6
6
def test_request_token ():
7
- iam_url = "https://iam.bluemix.net /identity/token"
7
+ iam_url = "https://iam.cloud.ibm.com /identity/token"
8
8
response = """{
9
9
"access_token": "oAeisG8yqPY7sFR_x66Z15",
10
10
"token_type": "Bearer",
@@ -23,7 +23,7 @@ def test_request_token():
23
23
24
24
@responses .activate
25
25
def test_refresh_token ():
26
- iam_url = "https://iam.bluemix.net /identity/token"
26
+ iam_url = "https://iam.cloud.ibm.com /identity/token"
27
27
response = """{
28
28
"access_token": "oAeisG8yqPY7sFR_x66Z15",
29
29
"token_type": "Bearer",
@@ -70,7 +70,7 @@ def test_is_refresh_token_expired():
70
70
71
71
@responses .activate
72
72
def test_get_token ():
73
- iam_url = "https://iam.bluemix.net /identity/token"
73
+ iam_url = "https://iam.cloud.ibm.com /identity/token"
74
74
token_manager = IAMTokenManager ("iam_apikey" , iam_url = iam_url )
75
75
token_manager .user_access_token = 'user_access_token'
76
76
@@ -154,7 +154,7 @@ def test_request_token_auth_in_ctor():
154
154
155
155
@responses .activate
156
156
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"
158
158
response = """{
159
159
"access_token": "oAeisG8yqPY7sFR_x66Z15",
160
160
"token_type": "Bearer",
@@ -175,7 +175,7 @@ def test_request_token_auth_in_ctor_client_id_only():
175
175
176
176
@responses .activate
177
177
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"
179
179
response = """{
180
180
"access_token": "oAeisG8yqPY7sFR_x66Z15",
181
181
"token_type": "Bearer",
0 commit comments