aboutsummaryrefslogtreecommitdiffstats
path: root/xtesting/core
diff options
context:
space:
mode:
Diffstat (limited to 'xtesting/core')
-rw-r--r--xtesting/core/testcase.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/xtesting/core/testcase.py b/xtesting/core/testcase.py
index cd0a9378..a385651f 100644
--- a/xtesting/core/testcase.py
+++ b/xtesting/core/testcase.py
@@ -232,8 +232,14 @@ class TestCase():
url, data=json.dumps(data, sort_keys=True),
headers=self._headers)
req.raise_for_status()
- self.__logger.info(
- "The results were successfully pushed to DB")
+ if urllib.parse.urlparse(url).scheme != "file":
+ res_url = req.json()["href"]
+ if env.get('TEST_DB_EXT_URL'):
+ res_url = res_url.replace(
+ env.get('TEST_DB_URL'), env.get('TEST_DB_EXT_URL'))
+ self.__logger.info(
+ "The results were successfully pushed to DB: \n\n%s\n",
+ res_url)
except AssertionError:
self.__logger.exception(
"Please run test before publishing the results")