diff options
author | Morgan Richomme <morgan.richomme@orange.com> | 2015-11-30 17:26:26 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2015-11-30 17:26:27 +0000 |
commit | 89ba89f97c3a84ead9897455bccfbd6662d40f95 (patch) | |
tree | 85cbfe05ae2847708e42fd817ea9891901e6cb92 /testcases/VIM/OpenStack/CI/libraries | |
parent | 581e00817e399a6d3785f503f392dbaf84e83938 (diff) | |
parent | 8c358c29b07ad126614c1c327d2d95f517d793f4 (diff) |
Merge "Add functions to retrieve POD name in Functest"
Diffstat (limited to 'testcases/VIM/OpenStack/CI/libraries')
-rw-r--r-- | testcases/VIM/OpenStack/CI/libraries/run_rally.py | 3 | ||||
-rw-r--r-- | testcases/VIM/OpenStack/CI/libraries/run_tempest.py | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/testcases/VIM/OpenStack/CI/libraries/run_rally.py b/testcases/VIM/OpenStack/CI/libraries/run_rally.py index 2d45112a8..bd9ce8ea8 100644 --- a/testcases/VIM/OpenStack/CI/libraries/run_rally.py +++ b/testcases/VIM/OpenStack/CI/libraries/run_rally.py @@ -89,9 +89,10 @@ def push_results_to_db(payload): url = TEST_DB + "/results" installer = functest_utils.get_installer_type(logger) git_version = functest_utils.get_git_branch(args.repo_path) + pod_name = functest_utils.get_pod_name(logger) # TODO pod_name hardcoded, info shall come from Jenkins params = {"project_name": "functest", "case_name": "Rally", - "pod_name": "opnfv-jump-2", "installer": installer, + "pod_name": pod_name, "installer": installer, "version": git_version, "details": payload} headers = {'Content-Type': 'application/json'} diff --git a/testcases/VIM/OpenStack/CI/libraries/run_tempest.py b/testcases/VIM/OpenStack/CI/libraries/run_tempest.py index 8ad62d15e..2d65df425 100644 --- a/testcases/VIM/OpenStack/CI/libraries/run_tempest.py +++ b/testcases/VIM/OpenStack/CI/libraries/run_tempest.py @@ -130,7 +130,8 @@ def run_tempest(OPTION): json_results = {"timestart": time_start, "duration": dur_sec_int, "tests": int(num_tests), "failures": int(num_failures)} logger.info("Results: "+str(json_results)) - push_results_to_db(json_results, MODE, "opnfv-jump-2") + pod_name = functest_utils.get_pod_name(logger) + push_results_to_db(json_results, MODE, pod_name) def main(): |