aboutsummaryrefslogtreecommitdiffstats
path: root/testcases/Controllers
diff options
context:
space:
mode:
authorMorgan Richomme <morgan.richomme@orange.com>2016-02-26 16:00:11 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-02-26 16:00:11 +0000
commit3f23d0c783fa0016f9aed8cd610261fdf929eba5 (patch)
tree5c147d6090591e2d7f34686cf180ca5fe271eeed /testcases/Controllers
parentc5e191cabe0a8215ed3975fb5c06c1cb15fdb158 (diff)
parent831ec1cf15cc6b945a86c4885331d51a295004c9 (diff)
Merge "Add jenkins build tag for result api"
Diffstat (limited to 'testcases/Controllers')
-rw-r--r--testcases/Controllers/ODL/CI/odlreport2db.py2
-rw-r--r--testcases/Controllers/ONOS/Teston/CI/onosfunctest.py3
2 files changed, 4 insertions, 1 deletions
diff --git a/testcases/Controllers/ODL/CI/odlreport2db.py b/testcases/Controllers/ODL/CI/odlreport2db.py
index 47067963a..50731ffe1 100644
--- a/testcases/Controllers/ODL/CI/odlreport2db.py
+++ b/testcases/Controllers/ODL/CI/odlreport2db.py
@@ -122,6 +122,7 @@ def main(argv):
f.close()
database = functest_yaml.get("results").get("test_db_url")
+ build_tag = functest_utils.get_build_tag()
try:
# example:
@@ -135,6 +136,7 @@ def main(argv):
None,
data['pod_name'],
scenario,
+ build_tag,
data)
except:
print("Error pushing results into Database '%s'" % sys.exc_info()[0])
diff --git a/testcases/Controllers/ONOS/Teston/CI/onosfunctest.py b/testcases/Controllers/ONOS/Teston/CI/onosfunctest.py
index dc45088b3..563fa5082 100644
--- a/testcases/Controllers/ONOS/Teston/CI/onosfunctest.py
+++ b/testcases/Controllers/ONOS/Teston/CI/onosfunctest.py
@@ -180,12 +180,13 @@ def main():
# TODO check path result for the file
scenario = functest_utils.get_scenario(logger)
pod_name = functest_utils.get_pod_name(logger)
+ build_tag = functest_utils.get_build_tag(logger)
result = GetResult()
functest_utils.push_results_to_db(TEST_DB,
"functest",
"ONOS",
logger, pod_name, scenario,
- payload=result)
+ build_tag, payload=result)
except:
logger.error("Error pushing results into Database")