From 618a00d775f7cfbf75e105e6a25168f0bbc1ce63 Mon Sep 17 00:00:00 2001 From: Cesar Celis Hernandez Date: Wed, 22 Jun 2022 12:07:40 -0400 Subject: [PATCH] Improving our Operator Test in console (#2138) --- portal-ui/tests/scripts/operator.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/portal-ui/tests/scripts/operator.sh b/portal-ui/tests/scripts/operator.sh index dca66ef76..5ef51ac05 100755 --- a/portal-ui/tests/scripts/operator.sh +++ b/portal-ui/tests/scripts/operator.sh @@ -63,12 +63,17 @@ function install_operator() { echo "Waiting for k8s api" sleep 10 - echo "Waiting for Operator Pods to come online (2m timeout)" + echo "wait for the app=console to be present -> One Pod" + wait_for_resource minio-operator console app + + echo "wait for the name=minio-operator to be present -> Two Pods" wait_for_resource minio-operator $value $key + + echo "Waiting for Operator Pods to come online (3m timeout)" try kubectl wait --namespace minio-operator \ --for=condition=ready pod \ --selector $key=$value \ - --timeout=120s + --timeout=180s echo "start - get data to verify proper image is being used" kubectl get pods --namespace minio-operator