aboutsummaryrefslogtreecommitdiffstats
path: root/setup.sh
diff options
context:
space:
mode:
authorDR695H <dr695h@att.com>2017-02-17 18:44:24 -0500
committerDR695H <dr695h@att.com>2017-02-17 18:44:41 -0500
commitccff30b6e325f359879595998e83bbfe6624c851 (patch)
treec98f950f33baa71d21b091b6b10ca3ffb7700467 /setup.sh
parent234c2226d8cb3368a7af3d280a5ec280782bed63 (diff)
Initial checkin of EopenECOMP testsuite
Change-Id: I64a2b6d8cf66169829866b73b3d26a4ff59b0a42 Signed-off-by: DR695H <dr695h@att.com>
Diffstat (limited to 'setup.sh')
-rw-r--r--setup.sh84
1 files changed, 84 insertions, 0 deletions
diff --git a/setup.sh b/setup.sh
new file mode 100644
index 00000000..3d324c93
--- /dev/null
+++ b/setup.sh
@@ -0,0 +1,84 @@
+#!/bin/bash
+#
+# setup : script to setup required runtime environment. This script can be run again to update anything
+# this should stay in your project directory
+#
+
+# get the path
+path=$(pwd)
+
+pip install --target="$path/robot/library" 'selenium<=3.0.0' 'requests==2.11.1' 'robotframework-selenium2library==1.8.0' \
+'robotframework-databaselibrary==0.8.1' 'robotframework-extendedselenium2library==0.9.1' 'robotframework-requests==0.4.5' \
+'robotframework-sshlibrary==2.1.2' \
+'robotframework-sudslibrary==0.8' 'robotframework-ftplibrary==1.3' 'robotframework-rammbock==0.4.0.1' \
+'deepdiff==2.5.1' 'dnspython==1.15.0' 'robotframework-httplibrary==0.4.2' 'robotframework-archivelibrary==0.3.2' 'PyYAML==3.12'
+
+
+# get the git for the eteutils you will need to add a private key to your ssh before this
+if [ -d $path/eteutils ]
+then
+ cd $path/eteutils
+else
+ cd ~
+ git config --global http.sslVerify false
+ if [ -d ~/python-testing-utils ]
+ then
+ cd python-testing-utils
+ git pull origin master
+ else
+ git clone https://gerrit.openecomp.org/r/testsuite/python-testing-utils.git
+ cd python-testing-utils
+ fi
+fi
+pip install --upgrade --target="$path/robot/library" .
+
+
+if [ -d $path/heatbridge ]
+then
+ cd $path/heatbridge
+else
+ cd ~
+ git config --global http.sslVerify false
+ if [ -d ~/heatbridge ]
+ then
+ cd heatbridge
+ git pull origin master
+ else
+ git clone https://gerrit.openecomp.org/r/testsuite/heatbridge.git
+ cd heatbridge
+ fi
+fi
+pip install --upgrade --target="$path/robot/library" .
+
+
+# NOTE: Patch to incude explicit install of paramiko to 2.0.2 to work with sshlibrary 2.1.2
+# This should be removed on new release of paramiko (2.1.2) or sshlibrary
+# https://github.com/robotframework/SSHLibrary/issues/157
+pip install --target="$path/robot/library" -U 'paramiko==2.0.2'
+
+#
+# Get the appropriate chromedriver. Default to linux64
+#
+CHROMEDRIVER_URL=http://chromedriver.storage.googleapis.com/2.27
+CHROMEDRIVER_ZIP=chromedriver_linux64.zip
+
+# Handle mac and windows
+OS=`uname -s`
+case $OS in
+ MINGW*_NT*)
+ CHROMEDRIVER_ZIP=chromedriver_win32.zip
+ ;;
+ Darwin*)
+ CHROMEDRIVER_ZIP=chromedriver_mac64.zip
+ ;;
+ *) echo "Defaulting to Linux 64" ;;
+esac
+
+if [ $CHROMEDRIVER_ZIP == 'chromedriver_linux64.zip' ]
+then
+ wget -O chromedriver.zip $CHROMEDRIVER_URL/$CHROMEDRIVER_ZIP
+ unzip chromedriver.zip -d /usr/local/bin
+else
+ curl $CHROMEDRIVER_URL/$CHROMEDRIVER_ZIP -o chromedriver.zip
+ unzip chromedriver.zip
+fi