diff options
author | Bryan Sullivan <bryan.sullivan@att.com> | 2016-11-22 19:58:38 -0800 |
---|---|---|
committer | Bryan Sullivan <bryan.sullivan@att.com> | 2016-11-22 19:58:38 -0800 |
commit | 4a8fadcf87099ac764974133912ef4894284cbe3 (patch) | |
tree | afe8f24884044100fdb2573fa90d9b427d52f829 /tests/vHello_Tacker.sh | |
parent | 488be18f430f703d7867b6cde6cf6135b11fedf7 (diff) |
Add user data support (verified) to blueprint
JIRA: MODELS-23
Change-Id: Ib187e31aee6534b1a1fad230605677ce87913cce
Signed-off-by: Bryan Sullivan <bryan.sullivan@att.com>
Diffstat (limited to 'tests/vHello_Tacker.sh')
-rw-r--r-- | tests/vHello_Tacker.sh | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/tests/vHello_Tacker.sh b/tests/vHello_Tacker.sh index fb0e6eb..41d868d 100644 --- a/tests/vHello_Tacker.sh +++ b/tests/vHello_Tacker.sh @@ -204,31 +204,6 @@ start() { echo "$0: wait 30 seconds for vHello server to startup" sleep 30 - echo "$0: start vHello web server" - chown root /tmp/tacker/vHello.pem - ssh -i /tmp/tacker/vHello.pem -x -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no ubuntu@$SERVER_IP <<EOF -cat << EOM | sudo tee /home/ubuntu/index.html -<!DOCTYPE html> -<html> -<head> -<title>Hello World!</title> -<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1"/> -<style> -body { width: 100%; background-color: white; color: black; padding: 0px; margin: 0px; font-family: sans-serif; font-size:100%; } -</style> -</head> -<body> -Hello World!<br> -<a href="http://wiki.opnfv.org"><img src="https://www.opnfv.org/sites/all/themes/opnfv/logo.png"></a> -</body></html> -EOM -nohup sudo python3 -m http.server 80 > /dev/null 2>&1 & -exit -EOF - - echo "$0: wait 10 seconds for vHello web server to startup" - sleep 10 - echo "$0: verify vHello server is running" apt-get install -y curl if [[ $(curl $SERVER_URL | grep -c "Hello World") == 0 ]]; then fail; fi |