Fix k8s csit test failures 60/136160/1
authorrameshiyer27 <ramesh.murugan.iyer@est.tech>
Thu, 12 Oct 2023 14:11:02 +0000 (15:11 +0100)
committerrameshiyer27 <ramesh.murugan.iyer@est.tech>
Thu, 12 Oct 2023 14:11:02 +0000 (15:11 +0100)
Issue-ID: POLICY-4853
Signed-off-by: rameshiyer27 <ramesh.murugan.iyer@est.tech>
Change-Id: If99cb19a60e65b720a60105d222ce321da7b01d3

csit/run-k8s-csit.sh
csit/start-s3p-tests.sh
helm/policy/values.yaml

index d383d1a..248a494 100755 (executable)
 # This script spins up kubernetes cluster in Microk8s for deploying policy helm charts.
 # Runs CSITs in kubernetes.
 
-if [ -z "${WORKSPACE}" ]; then
-    WORKSPACE=$(git rev-parse --show-toplevel)
-    export WORKSPACE
-fi
+WORKSPACE=$(git rev-parse --show-toplevel)
+export WORKSPACE
 
 export GERRIT_BRANCH=$(awk -F= '$1 == "defaultbranch" { print $2 }' "${WORKSPACE}"/.gitreview)
 
index 8fb571f..1609e4b 100755 (executable)
@@ -22,8 +22,8 @@
 
 # Start Kubernetes
 function start_kubernetes() {
-  bash run-k8s-csit.sh install $3
-  bash get-cluster-info.sh
+  bash run-k8s-csit.sh install
+  bash resources/scripts/get-cluster-info.sh
 }
 
 function install_jmeter() {
index 5ee9149..f4d7212 100755 (executable)
@@ -89,7 +89,7 @@ mariadb:
   image: mariadb:10.5.8
 
 dbmigrator:
-  image: onap/policy-db-migrator:2.6-SNAPSHOT-latest
+  image: onap/policy-db-migrator:3.0.1-SNAPSHOT
   schema: policyadmin
   policy_home: "/opt/app/policy"