Skip to content

Commit

Permalink
chore(service_url): Update url to service url
Browse files Browse the repository at this point in the history
  • Loading branch information
ehdsouza committed Sep 12, 2019
1 parent 010e923 commit 7ecc329
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ibm_cloud_sdk_core/base_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def __init__(self,
service_name = display_name.replace(' ', '_').lower()
config = read_from_env_variables(service_name)
if config.get('url'):
self.url = config.get('url')
self.service_url = config.get('url')
if config.get('disable_ssl'):
self.disable_ssl_verification = config.get('disable_ssl')

Expand Down
4 changes: 2 additions & 2 deletions test/test_base_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def test_iam():
os.environ['WATSON_URL'] = 'https://gateway-s.watsonplatform.net/watson/api'
os.environ['WATSON_DISABLE_SSL'] = 'False'
service = AnyServiceV1('2017-07-07', authenticator=iam_authenticator)
assert service.url == 'https://gateway-s.watsonplatform.net/watson/api'
assert service.service_url == 'https://gateway-s.watsonplatform.net/watson/api'
del os.environ['IBM_CREDENTIALS_FILE']
del os.environ['WATSON_URL']
del os.environ['WATSON_DISABLE_SSL']
Expand All @@ -162,7 +162,7 @@ def test_iam():
status=200)
responses.add(
responses.GET,
url='https://gateway.watsonplatform.net/test/api',
url='https://gateway-s.watsonplatform.net/watson/api',
body=json.dumps({
"foobar": "baz"
}),
Expand Down

0 comments on commit 7ecc329

Please sign in to comment.