Merge "Updated vIMS result format"
authorMorgan Richomme <morgan.richomme@orange.com>
Fri, 30 Oct 2015 10:11:52 +0000 (10:11 +0000)
committerGerrit Code Review <gerrit@172.30.200.206>
Fri, 30 Oct 2015 10:11:52 +0000 (10:11 +0000)
testcases/vIMS/CI/vIMS.py

index 05bd0c5..124265c 100644 (file)
@@ -337,7 +337,7 @@ def undeploy_clearwater():
 
 def test_clearwater():
 
-    time.sleep(120)
+    time.sleep(180)
 
     script = "source " + VIMS_DATA_DIR + "venv_cloudify/bin/activate; "
     script += "cd " + VIMS_DATA_DIR + "; "
@@ -386,12 +386,15 @@ def test_clearwater():
             logger.error("Unable to retrieve test results")
 
         if vims_test_result != "":
+            logger.debug("Pushing results to DB....")
             git_version = functest_utils.get_git_branch(args.repo_path)
             functest_utils.push_results_to_db(db_url=TEST_DB, case_name="vIMS",
                         logger=logger, pod_name="opnfv-jump-2", git_version=git_version,
-                        payload={'orchestrator_deployment_duration': CFY_DEPLOYMENT_DURATION,
-                        'VNF_deployment_duration': CW_DEPLOYMENT_DURATION,
-                        'functional_test': {'duration': duration,
+                        payload={'orchestrator':{'duration': CFY_DEPLOYMENT_DURATION,
+                        'result': ""},
+                        'vIMS': {'duration': CW_DEPLOYMENT_DURATION,
+                        'result': ""}
+                        'sig_test': {'duration': duration,
                         'result': vims_test_result}})
         try:
             os.remove(VIMS_TEST_DIR + "temp.json")