Keep policy installation after running test. 95/134495/3
authoradheli.tavares <adheli.tavares@est.tech>
Mon, 8 May 2023 07:46:14 +0000 (08:46 +0100)
committeradheli.tavares <adheli.tavares@est.tech>
Wed, 10 May 2023 12:32:52 +0000 (13:32 +0100)
As k8s tests are not running in jenkins, the uninstall of a policy
component is not necessary, so the environment can be use without
having to start the whole deployment.

Issue-ID: POLICY-4626
Change-Id: Id36505cbed99a80d24c30827222945b4ca12cf12
Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
csit/resources/scripts/prepare-robot-env.sh
csit/resources/scripts/pylibs.txt
csit/run-k8s-csit.sh

index 061da84..0e0778f 100755 (executable)
@@ -45,7 +45,6 @@ rm -rf "${ROBOT_VENV}"/src/onap/testsuite
 python3 -m pip install -qq --upgrade --extra-index-url="https://nexus3.onap.org/repository/PyPi.staging/simple" 'robotframework-onap==0.6.0.*' --pre
 
 echo "Uninstall docker-py and reinstall docker."
-python3 -m pip uninstall -y -qq docker-py
 python3 -m pip uninstall -y -qq docker
 python3 -m pip install -U -qq docker
 
index 496f4dc..758617a 100755 (executable)
@@ -152,7 +152,6 @@ function start_csit() {
         mkdir -p ${ROBOT_LOG_DIR}
         sudo microk8s helm install csit-robot robot --set robot="$ROBOT_FILE" --set "readiness={${READINESS_CONTAINERS[*]}}" --set robotLogDir=$ROBOT_LOG_DIR
         print_robot_log
-        uninstall_policy
     fi
 }