From 065c8640e76194dff83bf85ca457393c28485279 Mon Sep 17 00:00:00 2001 From: Daniel Albuquerque Date: Sat, 19 Sep 2020 17:39:54 +0100 Subject: [PATCH] Remove metadata tests (unrelated to skip analysis) --- test/e2e-istio-tests-skip-analysis.sh | 23 ++++------------------- 1 file changed, 4 insertions(+), 19 deletions(-) diff --git a/test/e2e-istio-tests-skip-analysis.sh b/test/e2e-istio-tests-skip-analysis.sh index f6f1937e..621fe285 100755 --- a/test/e2e-istio-tests-skip-analysis.sh +++ b/test/e2e-istio-tests-skip-analysis.sh @@ -21,17 +21,6 @@ spec: service: port: 9898 portDiscovery: true - apex: - annotations: - test: "annotations-test" - labels: - test: "labels-test" - headers: - request: - add: - x-envoy-upstream-rq-timeout-ms: "15000" - x-envoy-max-retries: "10" - x-envoy-retry-on: "gateway-error,connect-failure,refused-stream" skipAnalysis: true analysis: interval: 15s @@ -65,11 +54,6 @@ done echo '✔ Canary initialization test passed' -kubectl -n test get svc/podinfo -oyaml | grep annotations-test -kubectl -n test get svc/podinfo -oyaml | grep labels-test - -echo '✔ Canary service custom metadata test passed' - echo '>>> Triggering canary deployment' kubectl -n test set image deployment/podinfo podinfod=stefanprodan/podinfo:3.1.1 @@ -133,12 +117,13 @@ until ${ok}; do fi done -echo '>>> Confirm primary pod still running correct version' +echo '>>> Confirm primary pod is still running and with correct version' retries=50 count=0 ok=false -until ${ok}; do - kubectl get deployment podinfo-primary -n test -o jsonpath='{.spec.replicas}' | grep 1 && ok=true || ok=false +until ${okImage} && ${okRunning}; do + kubectl get deployment podinfo-primary -n test -o jsonpath='{.spec.replicas}' | grep 1 && okRunning=true || okRunning=false + kubectl -n test describe deployment/podinfo-primary | grep '3.1.3' && okImage=true || okImage=false sleep 5 count=$(($count + 1)) if [[ ${count} -eq ${retries} ]]; then