From: guillaume.lambert Date: Sat, 29 Jan 2022 11:38:08 +0000 (+0100) Subject: Fix func. tests utils base URL generation issue X-Git-Tag: 5.0.0~111^2 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;ds=sidebyside;h=refs%2Fchanges%2F23%2F99523%2F3;p=transportpce.git Fix func. tests utils base URL generation issue RESTCONF base URL is generated by concatenating a string to a configurable port number. This port number is loosely typed with an integer. If this is working well on most systems, it has been reported this concatenation raises an error on some installation. Casting explicitly the port number to a string in the concatenation should solve the issue. Signed-off-by: guillaume.lambert Change-Id: Iff503422cf3a881b178618a439d810c918b52953 --- diff --git a/tests/transportpce_tests/common/test_utils_rfc8040.py b/tests/transportpce_tests/common/test_utils_rfc8040.py index b2cfc4c4c..c65c51ddd 100644 --- a/tests/transportpce_tests/common/test_utils_rfc8040.py +++ b/tests/transportpce_tests/common/test_utils_rfc8040.py @@ -63,7 +63,7 @@ if 'USE_ODL_RESTCONF_VERSION' in os.environ: else: RESTCONF_VERSION = 'rfc8040' -RESTCONF_BASE_URL = 'http://localhost:' + RESTCONF_PORT + RESTCONF_PATH_PREFIX[RESTCONF_VERSION] +RESTCONF_BASE_URL = 'http://localhost:' + str(RESTCONF_PORT) + RESTCONF_PATH_PREFIX[RESTCONF_VERSION] if 'USE_ODL_ALT_KARAF_INSTALL_DIR' in os.environ: KARAF_INSTALLDIR = os.environ['USE_ODL_ALT_KARAF_INSTALL_DIR']