python ${FUNCTEST_REPO_DIR}/testcases/features/bgpvpn.py
;;
"onos")
- if [ "$INSTALLER_TYPE" == "joid" ]; then
- python ${FUNCTEST_REPO_DIR}/testcases/Controllers/ONOS/Teston/onosfunctest.py -i joid
- else
- python ${FUNCTEST_REPO_DIR}/testcases/Controllers/ONOS/Teston/onosfunctest.py
- fi
+ python ${FUNCTEST_REPO_DIR}/testcases/Controllers/ONOS/Teston/onosfunctest.py
;;
"promise")
python ${FUNCTEST_REPO_DIR}/testcases/features/promise.py $report
;;
"ovno")
# suite under rewritting for colorado
- # no need to run anything until refactoring done
+ # no need to run anything until refactoring done
# ${repos_dir}/ovno/Testcases/RunTests.sh
;;
"security_scan")
- # To be enabled once verified manually
- # python ${FUNCTEST_REPO_DIR}/Testcases/security_scan/security_scan.py --config config.ini
+ echo "Sourcing Credentials ${FUNCTEST_CONF_DIR}/stackrc for undercloud .."
+ source ${FUNCTEST_CONF_DIR}/stackrc
+ python ${FUNCTEST_REPO_DIR}/testcases/security_scan/security_scan.py --config ${FUNCTEST_REPO_DIR}/testcases/security_scan/config.ini
+ ;;
+ "copper")
+ python ${FUNCTEST_REPO_DIR}/testcases/features/copper.py
+ ;;
+ "moon")
+ # TODO put the link to Moon script to be run (if test runnable) here
+ ${repos_dir}/moon/tests/run_tests.sh
;;
*)
echo "The test case '${test_name}' does not exist."
exit 1
esac
+
+ if [[ $? != 0 ]]; then exit 1
+ else exit 0
+ fi
}