Remove dependency on ci-management for robot framework configuration 81/124181/2
authorputhuparambil.aditya <aditya.puthuparambil@bell.ca>
Tue, 14 Sep 2021 15:47:09 +0000 (16:47 +0100)
committerputhuparambil.aditya <aditya.puthuparambil@bell.ca>
Wed, 15 Sep 2021 11:12:04 +0000 (12:12 +0100)
Issue-ID: CPS-666
Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca>
Change-Id: Ief1ce66203e42964db855304b47f6bf0fdd140c3

csit/install-robotframework.sh [new file with mode: 0644]
csit/plans/default/setup.sh
csit/prepare-csit.sh
csit/pylibs.txt [new file with mode: 0644]

diff --git a/csit/install-robotframework.sh b/csit/install-robotframework.sh
new file mode 100644 (file)
index 0000000..dada622
--- /dev/null
@@ -0,0 +1,16 @@
+ROBOT_VENV=$(mktemp -d --suffix=robot_venv)
+echo "ROBOT_VENV=${ROBOT_VENV}" >> "${WORKSPACE}/env.properties"
+
+echo "Python version is: $(python3 --version)"
+
+python3 -m venv "${ROBOT_VENV}"
+source "${ROBOT_VENV}/bin/activate"
+
+set -exu
+
+# Make sure pip3 itself us up-to-date.
+python3 -m pip install --upgrade pip
+
+echo "Installing Python Requirements"
+python3 -m pip install -r ${WORKSPACE}/pylibs.txt
+python3 -m pip freeze
index cf29b53..e8074dd 100755 (executable)
@@ -40,7 +40,6 @@ chmod +x docker-compose
 
 # start CPS and PostgreSQL containers with docker compose
 ./docker-compose up -d
-
 # Validate CPS service initialization completed via periodic log checking for line like below:
 # org.onap.cps.Application ... Started Application in X.XXX seconds
 
index d46b17a..8ef6323 100755 (executable)
@@ -26,7 +26,7 @@ fi
 
 TESTPLANDIR=${WORKSPACE}/${TESTPLAN}
 
-# Assume that if ROBOT_VENV is set and virtualenv with system site packages can be activated, 
+# Assume that if ROBOT_VENV is set and virtualenv with system site packages can be activated,
 # ci-management/jjb/integration/include-raw-integration-install-robotframework.sh has already
 # been executed
 
@@ -39,9 +39,13 @@ else
     rm -rf /tmp/ci-management
     rm -f ${WORKSPACE}/env.properties
     cd /tmp
-    git clone "https://gerrit.onap.org/r/ci-management"
-    source /tmp/ci-management/jjb/integration/include-raw-integration-install-robotframework.sh
+    source ${WORKSPACE}/install-robotframework.sh
 fi
 
+# install eteutils
+mkdir -p ${ROBOT_VENV}/src/onap
+rm -rf ${ROBOT_VENV}/src/onap/testsuite
+python3 -m pip install --upgrade --extra-index-url="https://nexus3.onap.org/repository/PyPi.staging/simple" 'robotframework-onap==0.5.1.*' --pre
+
 pip freeze
 
diff --git a/csit/pylibs.txt b/csit/pylibs.txt
new file mode 100644 (file)
index 0000000..d6250db
--- /dev/null
@@ -0,0 +1,27 @@
+docker-py
+ipaddr
+netaddr
+netifaces
+pyhocon
+requests
+robotframework-httplibrary
+robotframework-requests
+robotframework-selenium2library
+robotframework-extendedselenium2library
+robotframework-sshlibrary
+scapy
+# Module jsonpath is needed by current AAA idmlite suite.
+jsonpath-rw
+# Modules for longevity framework robot library
+elasticsearch
+elasticsearch-dsl
+# Module for pyangbind used by lispflowmapping project
+pyangbind
+# Module for iso8601 datetime format
+isodate
+# Module for TemplatedRequests.robot library
+jmespath
+# Module for backup-restore support library
+jsonpatch
+# odltools for extra debugging
+odltools