From 58b9dc377289439f2adedb25e54f50b81b2ff922 Mon Sep 17 00:00:00 2001 From: blsaws Date: Fri, 9 Sep 2016 18:09:35 -0700 Subject: Include start script directly JIRA: MODELS-23 Change-Id: I12eac5ee6320fc547e6f52feba89b1aeb871ca42 Signed-off-by: blsaws --- tests/vHello_Tacker.sh | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) (limited to 'tests/vHello_Tacker.sh') diff --git a/tests/vHello_Tacker.sh b/tests/vHello_Tacker.sh index e6309bb..c03881b 100644 --- a/tests/vHello_Tacker.sh +++ b/tests/vHello_Tacker.sh @@ -109,8 +109,25 @@ start() { echo "$0: start vHello web server" chown root ~/.ssh/vHello.pem - scp -i /tmp/tacker/vHello.pem -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no /tmp/tacker/blueprints/tosca-vnfd-hello-world-tacker/start.sh ubuntu@$SERVER_IP:/home/ubuntu/start.sh - ssh -i /tmp/tacker/vHello.pem -x -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no ubuntu@$SERVER_IP "bash /home/ubuntu/start.sh; exit" + ssh -i /tmp/tacker/vHello.pem -x -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no ubuntu@$SERVER_IP < + + +Hello World! + + + + +Hello World!
+ + +EOM +nohup sudo python3 -m http.server 80 > /dev/null 2>&1 & +exit +EOF echo "$0: verify vHello server is running" if [[ $(curl $SERVER_URL | grep -c "Hello, World!") != 1 ]]; then fail; fi -- cgit 1.2.3-korg