From d84d35dc87cccdaefa8f57dbaeba11b9e7c20ea8 Mon Sep 17 00:00:00 2001 From: Patrik Nordwall Date: Mon, 11 Dec 2023 15:37:42 +0100 Subject: [PATCH] test: Harden Integration Tests for AppVersionRevision --- .../scripts/app-version-revision-kubernetes-test.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/integration-test/scripts/app-version-revision-kubernetes-test.sh b/integration-test/scripts/app-version-revision-kubernetes-test.sh index 4dbca9d7..947b85c4 100755 --- a/integration-test/scripts/app-version-revision-kubernetes-test.sh +++ b/integration-test/scripts/app-version-revision-kubernetes-test.sh @@ -20,7 +20,8 @@ testRevisionInPodsLog () { # the two lines below ensure a rollout is fully completed, before we look at the logs for updated revision # if not filtering out Terminated or pods that are not not ready (0/1) we will see previous revisions in the logs - [ `kubectl get pods -n $NAMESPACE | grep Terminating | wc -l` -ne 0 ] && continue # loop again until no Terminating nods in the list + [ `kubectl get pods -n $NAMESPACE | grep Terminating | wc -l` -ne 0 ] && continue # loop again until no Terminating pods in the list + [ `kubectl get pods -n $NAMESPACE | grep ContainerCreating | wc -l` -ne 0 ] && continue # loop again until no new pods in the list [ `kubectl get pods -n $NAMESPACE | grep 0/1 | wc -l` -eq 0 ] && break # exit the loop once we only have READY (1/1) pods done