Skip to content

Commit 010e923

Browse files
committed
Revert "chore(service_url): Update url to service url"
This reverts commit f7f4647.
1 parent f7f4647 commit 010e923

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

ibm_cloud_sdk_core/base_service.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ def __init__(self,
6666
if display_name:
6767
service_name = display_name.replace(' ', '_').lower()
6868
config = read_from_env_variables(service_name)
69-
if config.get('service_url'):
70-
self.service_url = config.get('service_url')
69+
if config.get('url'):
70+
self.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: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,12 +139,12 @@ def test_iam():
139139
file_path = os.path.join(
140140
os.path.dirname(__file__), '../resources/ibm-credentials-iam.env')
141141
os.environ['IBM_CREDENTIALS_FILE'] = file_path
142-
os.environ['WATSON_SERVICE_URL'] = 'https://gateway-s.watsonplatform.net/watson/api'
142+
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.service_url == 'https://gateway-s.watsonplatform.net/watson/api'
145+
assert service.url == 'https://gateway-s.watsonplatform.net/watson/api'
146146
del os.environ['IBM_CREDENTIALS_FILE']
147-
del os.environ['WATSON_SERVICE_URL']
147+
del os.environ['WATSON_URL']
148148
del os.environ['WATSON_DISABLE_SSL']
149149
assert service.authenticator is not None
150150

@@ -162,7 +162,7 @@ def test_iam():
162162
status=200)
163163
responses.add(
164164
responses.GET,
165-
url='https://gateway-s.watsonplatform.net/watson/api',
165+
url='https://gateway.watsonplatform.net/test/api',
166166
body=json.dumps({
167167
"foobar": "baz"
168168
}),

0 commit comments

Comments
 (0)