aboutsummaryrefslogtreecommitdiffstats
path: root/xtesting/core/testcase.py
diff options
context:
space:
mode:
Diffstat (limited to 'xtesting/core/testcase.py')
-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 386c9d86..d10fc37a 100644
--- a/xtesting/core/testcase.py
+++ b/xtesting/core/testcase.py
@@ -232,8 +232,14 @@ class TestCase(object):
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")