Skip to content

Commit 7ecc329

Browse files
committed
chore(service_url): Update url to service url
1 parent 010e923 commit 7ecc329

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ibm_cloud_sdk_core/base_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def __init__(self,
6767
service_name = display_name.replace(' ', '_').lower()
6868
config = read_from_env_variables(service_name)
6969
if config.get('url'):
70-
self.url = config.get('url')
70+
self.service_url = config.get('url')
7171
if config.get('disable_ssl'):
7272
self.disable_ssl_verification = config.get('disable_ssl')
7373

test/test_base_service.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def test_iam():
142142
os.environ['WATSON_URL'] = 'https://gateway-s.watsonplatform.net/watson/api'
143143
os.environ['WATSON_DISABLE_SSL'] = 'False'
144144
service = AnyServiceV1('2017-07-07', authenticator=iam_authenticator)
145-
assert service.url == 'https://gateway-s.watsonplatform.net/watson/api'
145+
assert service.service_url == 'https://gateway-s.watsonplatform.net/watson/api'
146146
del os.environ['IBM_CREDENTIALS_FILE']
147147
del os.environ['WATSON_URL']
148148
del os.environ['WATSON_DISABLE_SSL']
@@ -162,7 +162,7 @@ def test_iam():
162162
status=200)
163163
responses.add(
164164
responses.GET,
165-
url='https://gateway.watsonplatform.net/test/api',
165+
url='https://gateway-s.watsonplatform.net/watson/api',
166166
body=json.dumps({
167167
"foobar": "baz"
168168
}),

0 commit comments

Comments
 (0)