From 4e78e346f4c4bf10c31fe7a29d1fc9818a3b3f77 Mon Sep 17 00:00:00 2001 From: williamlardier Date: Thu, 24 Oct 2024 11:38:38 +0200 Subject: [PATCH] =?UTF-8?q?testing=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/scripts/end2end/patch-coredns.sh | 1 + tests/ctst/steps/website/website.ts | 10 +++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/scripts/end2end/patch-coredns.sh b/.github/scripts/end2end/patch-coredns.sh index b297d596d6..8a3c3b6408 100755 --- a/.github/scripts/end2end/patch-coredns.sh +++ b/.github/scripts/end2end/patch-coredns.sh @@ -32,6 +32,7 @@ corefile=" rewrite name exact sts.dr.zenko.local ingress-nginx-controller.ingress-nginx.svc.cluster.local rewrite name exact iam.dr.zenko.local ingress-nginx-controller.ingress-nginx.svc.cluster.local rewrite name exact shell-ui.dr.zenko.local ingress-nginx-controller.ingress-nginx.svc.cluster.local + rewrite name exact website.mywebsite.com ingress-nginx-controller.ingress-nginx.svc.cluster.local kubernetes cluster.local in-addr.arpa ip6.arpa { pods insecure fallthrough in-addr.arpa ip6.arpa diff --git a/tests/ctst/steps/website/website.ts b/tests/ctst/steps/website/website.ts index 0ca2e66c21..357ee3e154 100644 --- a/tests/ctst/steps/website/website.ts +++ b/tests/ctst/steps/website/website.ts @@ -63,16 +63,24 @@ Then('the user should be able to load the index.html file from the {string} endp const uri = `${baseUrl}${this.getSaved('bucketName')}.${endpoint}`; let response; let content; - let tries = 20; + let tries = 60; while (tries > 0) { tries--; try { response = await fetch(uri); + this.logger.debug('website response', { + response, + }); content = await response.text(); + this.logger.debug('website content', { + content, + }); assert.strictEqual(content.includes(pageMessage), true); return; } catch (err) { + // eslint-disable-next-line + console.error(err); this.logger.debug('Error when fetching the bucket website', { err, uri,