From d7999e662742c963f69ec4f3dacf5668bdb957ed Mon Sep 17 00:00:00 2001 From: Iaroslav Vorozhko Date: Fri, 14 May 2021 12:23:32 +0200 Subject: [PATCH] Added e2e test to check nginx update pass witth nginx validation webhook after canary promotion Signed-off-by: Iaroslav Vorozhko --- test/nginx/install.sh | 1 + test/nginx/test-canary.sh | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+) diff --git a/test/nginx/install.sh b/test/nginx/install.sh index 5c3cbbbd..672b11af 100755 --- a/test/nginx/install.sh +++ b/test/nginx/install.sh @@ -14,6 +14,7 @@ helm upgrade -i ingress-nginx ingress-nginx/ingress-nginx --version=${NGINX_HELM --wait \ --namespace ingress-nginx \ --set controller.metrics.enabled=true \ +--set controller.admissionWebhooks.enabled=true \ --set controller.podAnnotations."prometheus\.io/scrape"=true \ --set controller.podAnnotations."prometheus\.io/port"=10254 \ --set controller.service.type=NodePort diff --git a/test/nginx/test-canary.sh b/test/nginx/test-canary.sh index baaccf28..b2a166ed 100755 --- a/test/nginx/test-canary.sh +++ b/test/nginx/test-canary.sh @@ -195,6 +195,30 @@ done echo '✔ Canary promotion test passed' +echo 'Testing original ingress update after canary promotion to pass validation webhook' + +cat <