summaryrefslogtreecommitdiffstats
path: root/tests/vHello.sh
diff options
context:
space:
mode:
authorblsaws <bryan.sullivan@att.com>2016-08-31 18:19:35 -0700
committerblsaws <bryan.sullivan@att.com>2016-08-31 18:19:35 -0700
commite437bd1fd296590707df199dfe915252452cbcdb (patch)
treefeddf778712028699683b31c37db8c2982140e58 /tests/vHello.sh
parentb8fa06444772f33fcc6e5fdd2543b576c72f1dfa (diff)
Further tweaks on Tacker and Cloudify tests.
JIRA: MODELS-23 Change-Id: I38410b626cbc29097ea1d69711916d54b416e7c4 Signed-off-by: blsaws <bryan.sullivan@att.com>
Diffstat (limited to 'tests/vHello.sh')
-rw-r--r--tests/vHello.sh23
1 files changed, 13 insertions, 10 deletions
diff --git a/tests/vHello.sh b/tests/vHello.sh
index 317cd1e..adb5c8e 100644
--- a/tests/vHello.sh
+++ b/tests/vHello.sh
@@ -69,9 +69,15 @@ start() {
cd /tmp/cloudify/blueprints
echo "$0: clone cloudify-hello-world-example"
- git clone https://github.com/cloudify-cosmo/cloudify-hello-world-example.git
- cd cloudify-hello-world-example
- git checkout 3.4.1-build
+ if [[ "$1" == "cloudify-manager" ]]; then
+ git clone https://github.com/cloudify-cosmo/cloudify-hello-world-example.git
+ cd cloudify-hello-world-example
+ git checkout 3.4.1-build
+ else
+ git clone https://github.com/blsaws/cloudify-cli-hello-world-example.git
+ cd cloudify-cli-hello-world-example
+ git checkout 3.4.1-build
+ fi
echo "$0: setup OpenStack CLI environment"
source /tmp/cloudify/admin-openrc.sh
@@ -114,6 +120,9 @@ flavor: m1.small
external_network_name: $floating_network_name
webserver_port: 8080
key_name: vHello
+ssh_key_filename: ~/.ssh/vHello.pem
+ssh_user: ubuntu
+ssh_port: 22
EOF
fi
@@ -143,14 +152,8 @@ EOF
SERVER_URL=$(cfy deployments outputs -d vHello | awk "/ Value: / { print \$2 }")
else
echo "$0: install local blueprint"
- cfy local install --install-plugins -i vHello-inputs.yaml -p cloudify-hello-world-example/blueprint.yaml --allow-custom-parameters --parameters="floating_network_name=$floating_network_name" --task-retries=10 --task-retry-interval=30
+ cfy local install --install-plugins -i vHello-inputs.yaml -p cloudify-cli-hello-world-example/blueprint.yaml --allow-custom-parameters --parameters="floating_network_name=$floating_network_name" --task-retries=10 --task-retry-interval=30
if [ $? -eq 1 ]; then fail; fi
-# cfy local install replaces the following, per http://getcloudify.org/2016/04/07/cloudify-update-from-developers-features-improvements-open-source-python-devops.html
-# cfy local init --install-plugins -i vHello-inputs.yaml -p cloudify-hello-world-example/blueprint.yaml
-# cfy local execute -w install
-# Not sure if needed
-# cfy local create-requirements -p cloudify-hello-world-example/blueprint.yaml
-# if [ $? -eq 1 ]; then fail; fi
echo "$0: get vHello server address"
SERVER_URL=$(cfy local outputs | awk "/http_endpoint/ { print \$2 }" | sed -- 's/"//g')