aboutsummaryrefslogtreecommitdiffstats
path: root/testcases/VIM/OpenStack
diff options
context:
space:
mode:
authorMorgan Richomme <morgan.richomme@orange.com>2016-04-22 11:18:36 +0200
committerMorgan Richomme <morgan.richomme@orange.com>2016-04-22 13:55:19 +0200
commitade54b8ec63fc674cfd7d7e0a893b7e34f6b44b1 (patch)
tree6e3cd547ecba1cb1ab3a9d90ad08209291b49cc9 /testcases/VIM/OpenStack
parente452376fbc44df9cf0688571e1882498f456f3a4 (diff)
Affect version field in results for all the testcases
Previously version was scenario JIRA: FUNCTEST-225 Change-Id: Ia86f83dbe98ad5f9dbced60c46e57f58eccba7e9 Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
Diffstat (limited to 'testcases/VIM/OpenStack')
-rwxr-xr-xtestcases/VIM/OpenStack/CI/libraries/run_rally-cert.py3
-rw-r--r--testcases/VIM/OpenStack/CI/libraries/run_tempest.py3
2 files changed, 3 insertions, 3 deletions
diff --git a/testcases/VIM/OpenStack/CI/libraries/run_rally-cert.py b/testcases/VIM/OpenStack/CI/libraries/run_rally-cert.py
index 6e625ce51..41c359cc7 100755
--- a/testcases/VIM/OpenStack/CI/libraries/run_rally-cert.py
+++ b/testcases/VIM/OpenStack/CI/libraries/run_rally-cert.py
@@ -136,8 +136,7 @@ def push_results_to_db(case, payload, criteria):
url = TEST_DB + "/results"
installer = functest_utils.get_installer_type(logger)
scenario = functest_utils.get_scenario(logger)
- # Until we found a way to manage version, use scenario
- version = scenario
+ version = functest_utils.get_version(logger)
pod_name = functest_utils.get_pod_name(logger)
# evalutate success criteria
diff --git a/testcases/VIM/OpenStack/CI/libraries/run_tempest.py b/testcases/VIM/OpenStack/CI/libraries/run_tempest.py
index 9d8b7be8b..b2240c9c2 100644
--- a/testcases/VIM/OpenStack/CI/libraries/run_tempest.py
+++ b/testcases/VIM/OpenStack/CI/libraries/run_tempest.py
@@ -129,13 +129,14 @@ def push_results_to_db(case, payload, criteria):
url = TEST_DB + "/results"
installer = functest_utils.get_installer_type(logger)
scenario = functest_utils.get_scenario(logger)
+ version = functest_utils.get_version(logger)
pod_name = functest_utils.get_pod_name(logger)
logger.info("Pushing results to DB: '%s'." % url)
params = {"project_name": "functest", "case_name": case,
"pod_name": str(pod_name), 'installer': installer,
- "version": scenario, "scenario": scenario, "criteria": criteria,
+ "version": version, "scenario": scenario, "criteria": criteria,
'details': payload}
headers = {'Content-Type': 'application/json'}