Wait for integration test to come out of Running state at the end
@@ -50,6 +50,16 @@ for i in $(seq 1 100) ; do
done
kubectl logs stork-test -n kube-system -f
+for i in $(seq 1 100) ; do
+ test_status=$(kubectl get pod stork-test -n kube-system -o json | jq ".status.phase" -r)
+ if [ "$test_status" == "Running" ]; then
+ echo "Test is still running, status: $test_status"
+ sleep 5
+ else
+ break
+ fi
+done
+
test_status=$(kubectl get pod stork-test -n kube-system -o json | jq ".status.phase" -r)
if [ "$test_status" == "Succeeded" ]; then
echo "Tests passed"
