aboutsummaryrefslogtreecommitdiffstats
path: root/testcases/vPing
diff options
context:
space:
mode:
authorboucherv <valentin.boucher@orange.com>2016-02-24 14:33:51 +0100
committerboucherv <valentin.boucher@orange.com>2016-02-24 15:19:34 +0100
commit831ec1cf15cc6b945a86c4885331d51a295004c9 (patch)
tree48ac6b31ecdcf24a6a4bd5f2c7633a934114feff /testcases/vPing
parent9de85e7fcd1fa33982fd494d2f7b6e169eef8b91 (diff)
Add jenkins build tag for result api
Ex: jenkins-functest-compass-intel-pod8-daily-master-19 this will bring together all tests passed on the same functest run JIRA: FUNCTEST-140 Change-Id: I3c1cd8137184509ee5fdeeb2df5399d4c71e3f67 Signed-off-by: boucherv <valentin.boucher@orange.com>
Diffstat (limited to 'testcases/vPing')
-rw-r--r--testcases/vPing/CI/libraries/vPing_ssh.py3
-rw-r--r--testcases/vPing/CI/libraries/vPing_userdata.py3
2 files changed, 4 insertions, 2 deletions
diff --git a/testcases/vPing/CI/libraries/vPing_ssh.py b/testcases/vPing/CI/libraries/vPing_ssh.py
index e3b2ec5e..508ac0ff 100644
--- a/testcases/vPing/CI/libraries/vPing_ssh.py
+++ b/testcases/vPing/CI/libraries/vPing_ssh.py
@@ -334,10 +334,11 @@ def push_results(start_time_ts, duration, test_status):
logger.debug("Pushing result into DB...")
scenario = functest_utils.get_scenario(logger)
pod_name = functest_utils.get_pod_name(logger)
+ build_tag = functest_utils.get_build_tag(logger)
functest_utils.push_results_to_db(TEST_DB,
"functest",
"vPing",
- logger, pod_name, scenario,
+ logger, pod_name, scenario, build_tag,
payload={'timestart': start_time_ts,
'duration': duration,
'status': test_status})
diff --git a/testcases/vPing/CI/libraries/vPing_userdata.py b/testcases/vPing/CI/libraries/vPing_userdata.py
index eac2df5c..8f214205 100644
--- a/testcases/vPing/CI/libraries/vPing_userdata.py
+++ b/testcases/vPing/CI/libraries/vPing_userdata.py
@@ -316,10 +316,11 @@ def push_results(start_time_ts, duration, test_status):
logger.debug("Pushing result into DB...")
scenario = functest_utils.get_scenario(logger)
pod_name = functest_utils.get_pod_name(logger)
+ build_tag = functest_utils.get_build_tag(logger)
functest_utils.push_results_to_db(TEST_DB,
"functest",
"vPing_userdata",
- logger, pod_name, scenario,
+ logger, pod_name, scenario, build_tag,
payload={'timestart': start_time_ts,
'duration': duration,
'status': test_status})