Remove trailing slash from base_url in tempest plugin
When service endpoint url has trailing slash, tempest plugin constructs wrong url with two slashes. Added rstrip('/') for base_url for ensure trailing slash is absent. Change-Id: Id9455779156147e9d3001985d8ab9a367095bcce
This commit is contained in:
parent
77bcccf98c
commit
5d5edde8a8
@ -228,7 +228,7 @@ class BaseBaremetalTest(api_version_utils.BaseMicroversionTest,
|
||||
def validate_self_link(self, resource, uuid, link):
|
||||
"""Check whether the given self link formatted correctly."""
|
||||
expected_link = "{base}/{pref}/{res}/{uuid}".format(
|
||||
base=self.client.base_url,
|
||||
base=self.client.base_url.rstrip('/'),
|
||||
pref=self.client.uri_prefix,
|
||||
res=resource,
|
||||
uuid=uuid)
|
||||
|
Loading…
x
Reference in New Issue
Block a user