Fix the endpoint url trailing slash issue
Keystone catalog url could be with or without the trailing slash. Removing it when get the endpoint. Change-Id: I55bbfb5823957ff50d9a588c9cc1a9faebecffff
This commit is contained in:
parent
4afcaddad5
commit
e81cb44da2
|
@ -61,7 +61,7 @@ class TestTelemetryIntegration(manager.ScenarioTest):
|
|||
raise Exception("%s interface not found for endpoint %s" %
|
||||
(endpoint_type,
|
||||
opt_section.catalog_type))
|
||||
return endpoints[0]
|
||||
return endpoints[0].rstrip('/')
|
||||
|
||||
else:
|
||||
if not endpoint_type.endswith("URL"):
|
||||
|
@ -72,7 +72,7 @@ class TestTelemetryIntegration(manager.ScenarioTest):
|
|||
if not endpoints:
|
||||
raise Exception("%s endpoint not found" %
|
||||
opt_section.catalog_type)
|
||||
return endpoints[0]['endpoints'][0][endpoint_type]
|
||||
return endpoints[0]['endpoints'][0][endpoint_type].rstrip('/')
|
||||
|
||||
def _prep_test(self, filename):
|
||||
admin_auth = self.os_admin.auth_provider.get_auth()
|
||||
|
|
Loading…
Reference in New Issue