diff options
author | rameshiyer27 <ramesh.murugan.iyer@est.tech> | 2023-02-09 14:46:18 +0000 |
---|---|---|
committer | Ramesh Murugan Iyer <ramesh.murugan.iyer@est.tech> | 2023-02-10 16:31:33 +0000 |
commit | be226256d85836a8a213f54f5b56c4da570d6473 (patch) | |
tree | 7a31ae2d930e99540464e8a75746a9a62fd103ff /csit | |
parent | 030b296310476f81d0ee3f66aac04622a65b201e (diff) |
Fix test failures in K8s CSIT
Apex-pdp - Add json response files, update sim hostnames
Api,Pap - Update context paths for prometheus metrics
Print console logs of test execution
Issue-ID: POLICY-4546
Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech>
Change-Id: I1bed6e4077c7e52b986bcb927204819ec0d95d99
Diffstat (limited to 'csit')
-rwxr-xr-x | csit/run-k8s-csit.sh | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/csit/run-k8s-csit.sh b/csit/run-k8s-csit.sh index 33cf2f8a..e348ca80 100755 --- a/csit/run-k8s-csit.sh +++ b/csit/run-k8s-csit.sh @@ -94,10 +94,19 @@ function build_robot_image () { echo "---------------------------------------------" echo "Installing Robot framework pod for running CSIT" microk8s helm install csit-robot robot --set robot=$ROBOT_FILE --set "readiness={${READINESS_CONTAINERS[*]}}"; - echo "Please check the logs of policy-csit-robot pod for the test execution results" + print_robot_log fi } +function print_robot_log () { + robotpod=$(microk8s kubectl get po | grep policy-csit) + podName=$(echo $robotpod | awk '{print $1}') + echo "The robot tests will begin once the policy components {${READINESS_CONTAINERS[*]}} are up and running..." + microk8s kubectl wait --for=condition=ready --timeout=180s pod/$podName + microk8s kubectl logs -f $podName + echo "Please check the logs of policy-csit-robot pod for the test execution results" +} + function clone_models () { GIT_TOP=$(git rev-parse --show-toplevel) GERRIT_BRANCH=$(awk -F= '$1 == "defaultbranch" { print $2 }' \ |