Fix 5Gbulkpm robot script
[testsuite.git] / setup.sh
index cf9b6ed..88a0618 100755 (executable)
--- a/setup.sh
+++ b/setup.sh
@@ -17,49 +17,25 @@ pip install \
 --no-cache-dir \
 --exists-action s \
 --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-seleniumlibrary==3.3.1' \
+'robotframework-databaselibrary==1.2' \
+'robotframework-angularjs==0.0.9' \
 'robotframework-requests==0.5.0' \
-'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' \
-'json5==0.7.0' \
-'robotframework-kafkalibrary==0.0.2'
-
-
-# get the git for the eteutils you will need to add a private key to your ssh before this
-if [ -d $path/testsuite/eteutils ]
-then
-    # Support LF build location
-       cd $path/testsuite/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.onap.org/r/testsuite/python-testing-utils.git
-               cd python-testing-utils
-       fi
-fi
+'robotframework-sshlibrary==3.3.0' \
+'robotframework-ftplibrary==1.6' \
+'robotframework-archivelibrary==0.4.0' \
+'robotframework-jsonlibrary==0.3.1'
 
 pip install \
+--pre \
 --no-cache-dir \
---upgrade \
 --exists-action s \
---target="$path/robot/library" .
+--target="$path/robot/library" \
+--extra-index-url="https://nexus3.onap.org/repository/PyPi.staging/simple" \
+'robotframework-onap==0.6.0.*'
 
+# i dont why we need this, but lets protobuf work in docker
+touch /var/opt/ONAP/robot/library/google/__init__.py
 
 if [ -d $path/testsuite/heatbridge ]
 then
@@ -85,15 +61,7 @@ pip install \
 --target="$path/robot/library" \
 ./heatbridge
 
-
-# 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 \
---no-cache-dir \
---target="$path/robot/library" \
--U 'paramiko==2.0.2'
-
+sed -i 's/cinderclient\.v1\.client/cinderclient\.v2\.client/g' /var/opt/ONAP/robot/library/heatbridge/OpenstackManager.py
 
 # Go back to execution folder
 cd $path
@@ -105,13 +73,13 @@ then
        # we need to update PATH with chromium-chromedriver
        echo "Adding in-container chromedriver to PATH"
        ln -s /usr/lib/chromium-browser/chromedriver /usr/local/bin/chromedriver
-       
+
        echo "Skipping desktop steps, building container image..."
-else   
+else
        #
        # Get the appropriate chromedriver. Default to linux64
        #
-       CHROMEDRIVER_URL=http://chromedriver.storage.googleapis.com/2.43
+       CHROMEDRIVER_URL=http://chromedriver.storage.googleapis.com/75.0.3770.140
        CHROMEDRIVER_ZIP=chromedriver_linux64.zip
        CHROMEDRIVER_TARGET=chromedriver.zip
 
@@ -136,25 +104,4 @@ else
                unzip $CHROMEDRIVER_TARGET
        fi
        rm -rf $CHROMEDRIVER_TARGET
-fi
-
-#
-# Install kafkacat : https://github.com/edenhill/kafkacat
-#
-OS=`uname -s`
-case $OS in
-       Darwin)
-               brew install kafkacat ;;
-       Linux)
-               apt-get -y install kafkacat
-esac
-#
-# Install protobuf
-#
-OS=`uname -s`
-case $OS in
-        Darwin)
-                brew install protobuf ;;
-        Linux)
-                apt-get -y install protobuf-compiler
-esac
+fi
\ No newline at end of file