aboutsummaryrefslogtreecommitdiffstats
path: root/functest/opnfv_tests/openstack
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2019-01-27 00:06:32 +0100
committerCédric Ollivier <cedric.ollivier@orange.com>2019-01-27 00:43:14 +0100
commit9e4e6f049fa7d5cce8db61dfa2ebebc55f91c1d8 (patch)
tree97bb257b918e6dd7b14949359f6fc32303be61f2 /functest/opnfv_tests/openstack
parent9675c5a0cb2ccd698451a5930708263be5eba527 (diff)
Stop using urljoin when adding v3
urljoin works here only if url ends by /. It replaces identity by v3 when running vs devstack. Change-Id: Id896f2b54dfcabadaad1137deef91b1cb07c697d Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'functest/opnfv_tests/openstack')
-rw-r--r--functest/opnfv_tests/openstack/vmtp/vmtp.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/functest/opnfv_tests/openstack/vmtp/vmtp.py b/functest/opnfv_tests/openstack/vmtp/vmtp.py
index 6bad9aec2..3462ec063 100644
--- a/functest/opnfv_tests/openstack/vmtp/vmtp.py
+++ b/functest/opnfv_tests/openstack/vmtp/vmtp.py
@@ -29,7 +29,6 @@ import tempfile
import time
import yaml
-import six
from xtesting.core import testcase
from functest.core import singlevm
@@ -138,8 +137,7 @@ class Vmtp(singlevm.VmReady2):
OS_PROJECT_ID=self.project.project.id,
OS_PASSWORD=self.project.password)
if not new_env["OS_AUTH_URL"].endswith(('v3', 'v3/')):
- new_env["OS_AUTH_URL"] = six.moves.urllib.parse.urljoin(
- new_env["OS_AUTH_URL"], 'v3')
+ new_env["OS_AUTH_URL"] = "{}/v3".format(new_env["OS_AUTH_URL"])
try:
del new_env['OS_TENANT_NAME']
del new_env['OS_TENANT_ID']