From b007d00d5264bd6d28b461ef6a600135f1d513f3 Mon Sep 17 00:00:00 2001 From: "guillaume.lambert" Date: Sat, 29 Jan 2022 12:38:08 +0100 Subject: [PATCH] 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 --- tests/transportpce_tests/common/test_utils_rfc8040.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'] -- 2.36.6