diff options
author | Liam Fallon <liam.fallon@est.tech> | 2023-02-10 23:38:01 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2023-02-10 23:38:01 +0000 |
commit | 600a3002192da1ba2174c63d248a46dc27414397 (patch) | |
tree | 6bf9c171128c8b88612be371b4fb5d53deaf2f96 /csit | |
parent | fcda69bd79b455b9ce3d1a9e426b84d7049ae28f (diff) | |
parent | be226256d85836a8a213f54f5b56c4da570d6473 (diff) |
Merge "Fix test failures in K8s CSIT"
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 }' \ |