Skip to content

Commit

Permalink
testingé
Browse files Browse the repository at this point in the history
  • Loading branch information
williamlardier committed Oct 24, 2024
1 parent 0313b39 commit 4e78e34
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/scripts/end2end/patch-coredns.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 9 additions & 1 deletion tests/ctst/steps/website/website.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string>('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,
Expand Down

0 comments on commit 4e78e34

Please sign in to comment.