engine: Create openstack release jobs
[infra/cicd.git] / jjb / cloud-infra / cloud-infra-test.sh
index d12c943bd769ada519a5531841325009fae5fa43..a473fcd1efcc4875a8fa91ea3960cdeec05f3427 100644 (file)
@@ -26,14 +26,23 @@ set -o pipefail
 # executed when the job that uses this script gets triggered due to Gerrit change.
 #
 # Logic in this script should be kept at minimum and the changes should be pushed into
-# the cloud infra engine and/or test repo.
+# the cloud infra test test.sh script.
 
-# The verify job will verify changes coming to other repositories as well such as
-# infra/swconfig so it needs to be handled here in order to ensure $WORKSPACE contains
-# the actual engine repo clone. This will be added later on.
+# we don't support ONAP scenario verification because it is expensive
+# TODO: we need to find a way to verify those patches in a cheaper way
+if [[ "$DEPLOY_SCENARIO" =~ "onap" ]]; then
+  echo "Info: ONAP scenario verification has not been implemented yet!"
+  exit 0
+fi
 
-# we currently only do Hello World here and this will be adapted to do test instead
+# we don't support testing of the deployments done on OpenStack cloud using heat yet
+if [[ $DEPLOY_TYPE == "cloud" ]]; then
+  echo "Info: Testing of cloud deployments has not been implemented yet!"
+  exit 0
+fi
+
+# execute cloud engine test.sh script with arguments
 cd $WORKSPACE
-echo "Hello World!"
+./test/test.sh -f $TEST_FW -t $TEST_SUITE -s $DEPLOY_SCENARIO -d $YARDSTICK_DISPATCHER
 
 # vim: set ts=2 sw=2 expandtab: