Merge "Add task file and test case description file for TC063_StorageCapacity"
[yardstick.git] / tests / ci / yardstick-verify
index 649eb31..bdb9100 100755 (executable)
@@ -42,7 +42,7 @@ EOF
 
 DISPATCHER_TYPE=file
 DISPATCHER_FILE_NAME="/tmp/yardstick.out"
-DISPATCHER_HTTP_TARGET=
+DISPATCHER_HTTP_TARGET="http://testresults.opnfv.org/test/api/v1/results"
 DISPATCHER_INFLUXDB_TARGET=
 
 while getopts "r:i:h" OPTION; do
@@ -128,10 +128,13 @@ install_storperf()
         echo
         echo "========== Installing storperf =========="
 
-        if ! yardstick plugin install plugin/CI/storperf.yaml; then
+        if ! yardstick -d plugin install plugin/CI/storperf.yaml; then
             echo "Install storperf plugin FAILED";
             exit 1
         fi
+
+        echo
+        echo "========== Installed storperf container =========="
     fi
 }
 
@@ -293,13 +296,28 @@ EOF
 
         done
 
+        local sceanrio_status="SUCCESS"
+
         if [ $failed -gt 0 ]; then
+            scenario_status="FAILED"
+        fi
+        curl -i -H 'content-type: application/json' -X POST -d \
+            "{\"project_name\": \"yardstick\",
+              \"pod_name\":\"${NODE_NAME}\",
+              \"installer\":\"${INSTALLER_TYPE}\",
+              \"description\": \"yardstick ci scenario status\",
+              \"case_name\": \"scenario_status\",
+              \"version\":\"${YARDSTICK_BRANCH}\",
+              \"scenario\":\"${DEPLOY_SCENARIO}\",
+              \"details\":\"${sceanrio_status}\"}" \
+              ${DISPATCHER_HTTP_TARGET}
 
+        if [ $failed -gt 0 ]; then
             echo "---------------------------"
             echo "$failed out of ${SUITE_FILES[*]} test suites FAILED"
             echo "---------------------------"
             exit 1
-         fi
+        fi
 
     else