diff options
author | 2018-03-13 12:36:55 -0700 | |
---|---|---|
committer | 2018-03-15 16:58:22 +0000 | |
commit | df17a7ff9ba569227e8a2b5b1863800bbb8e1806 (patch) | |
tree | 749011aaf1b514e17c31edd9c12252a95f0aec18 /bootstrap/vagrant-onap/tools/run.sh | |
parent | 1393fc2533cae1271126498f1661dec893922dae (diff) |
Deprecate vagrant-onap tool
The vagrant-onap tool needs to be moved to its own repo to have better
control of versions and autonomy. This change removes the project from
integration repository.
Change-Id: I90bd4505a9fc7376c31a780aa1b833ee2663af3e
Signed-off-by: Victor Morales <victor.morales@intel.com>
Depends-On: I79df8c35fccaa266a789217d441a6cf1183bd42a
Issue-ID: INT-441
Diffstat (limited to 'bootstrap/vagrant-onap/tools/run.sh')
-rwxr-xr-x | bootstrap/vagrant-onap/tools/run.sh | 100 |
1 files changed, 0 insertions, 100 deletions
diff --git a/bootstrap/vagrant-onap/tools/run.sh b/bootstrap/vagrant-onap/tools/run.sh deleted file mode 100755 index 27e0aa31e..000000000 --- a/bootstrap/vagrant-onap/tools/run.sh +++ /dev/null @@ -1,100 +0,0 @@ -#!/bin/bash - -function usage { - cat <<EOF -Usage: run.sh Command [-y] [-?] -Optional arguments: - -y - Skips warning prompt. - -g - Skips creation or retrieve image process. - -i - Skips installation service process. - -s <suite> - Test suite to use in testing mode. - -c <case> - Test case to use in testing mode. -Commands: - all_in_one Deploy in all-in-one mode. - dns|mr|sdc|aai|mso|robot|vid|sdnc|portal|dcae|policy|appc|vfc|vnfsdk|multicloud|ccsdk|vvp|openstack|msb|oom Deploy chosen service. - testing Deploy in testing mode. -EOF -} - -run=false -test_suite="*" -test_case="*" - -COMMAND=$1 - -while getopts "ygis:c:" OPTION "${@:2}"; do - case "$OPTION" in - y) - run=true - ;; - g) - export SKIP_GET_IMAGES="True" - ;; - i) - export SKIP_INSTALL="True" - ;; - s) - if [ "$COMMAND" != "testing" ] ; then - echo "Test suite should only be specified in testing mode." - echo "./tools/run.sh -? for usage." - exit 1 - fi - test_suite=$OPTARG - ;; - c) - if [ "$COMMAND" != "testing" ] ; then - echo "Test case should only be specified in testing mode." - echo "./tools/run.sh -? for usage." - exit 1 - fi - test_case=$OPTARG - ;; - \?) - usage - exit 1 - ;; - esac -done - -case $COMMAND in - "all_in_one" ) - export DEPLOY_MODE='all-in-one' - ;; - "dns" | "mr" | "sdc" | "aai" | "mso" | "robot" | "vid" | "sdnc" | "portal" | "dcae" | "policy" | "appc" | "vfc" | "vnfsdk"| "multicloud" | "ccsdk" | "vvp" | "openstack" | "msb" | "oom" ) - export DEPLOY_MODE='individual' - ;; - "testing" ) - export DEPLOY_MODE='testing' - if [ "$run" == false ] ; then - while true ; do - echo "Warning: This test script will delete the contents of ../opt/ and ~/.m2." - read -p "Would you like to continue? [y]es/[n]o: " yn - case $yn in - [Yy]*) - break - ;; - [Nn]*) - echo "Exiting." - exit 0 - ;; - esac - done - fi - - export TEST_SUITE=$test_suite - export TEST_CASE=$test_case - rm -rf ./opt/ - rm -rf ~/.m2/ - ;; - * ) - usage - exit 1 -esac - -vagrant destroy -f $COMMAND -vagrant up $COMMAND |