FIX: args of push_result_to_db changed from git_version to version 43/7843/1
authorgrakiss <grakiss.wanglei@huawei.com>
Mon, 25 Jan 2016 01:05:03 +0000 (09:05 +0800)
committerMorgan Richomme <morgan.richomme@orange.com>
Mon, 25 Jan 2016 08:25:25 +0000 (08:25 +0000)
Change-Id: I00411286d19a8e8c3f659cff8e2f6ce6f8a0ccf9
Signed-off-by: grakiss <grakiss.wanglei@huawei.com>
(cherry picked from commit ad7a7a66e37a4cd31f46b2c753e7124ff16766ec)

testcases/vIMS/CI/vIMS.py

index eae821a..bc15676 100644 (file)
@@ -177,9 +177,10 @@ def test_clearwater():
             if args.report:
                 logger.debug("Push result into DB")
                 logger.debug("Pushing results to DB....")
-                git_version = functest_utils.get_git_branch(REPO_PATH)
+                scenario = functest_utils.get_scenario(logger)
                 functest_utils.push_results_to_db(db_url=TEST_DB, case_name="vIMS",
-                                                  logger=logger, pod_name=functest_utils.get_pod_name(logger), git_version=git_version,
+                                                  logger=logger, pod_name=functest_utils.get_pod_name(logger),
+                                                  version=scenario,
                                                   payload={'orchestrator': {'duration': CFY_DEPLOYMENT_DURATION,
                                                                             'result': ""},
                                                            'vIMS': {'duration': CW_DEPLOYMENT_DURATION,