Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions tests/ctst/steps/website/website.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import assert from 'assert';
import { Given, When, Then } from '@cucumber/cucumber';
import Zenko from '../../world/Zenko';
import { putObject } from '../utils/utils';
import { waitForZenkoToStabilize, waitForDataServicesToStabilize } from '../utils/kubernetes';
import { S3, Utils } from 'cli-testing';

const pageMessage = Utils.randomString();
Expand Down Expand Up @@ -29,9 +30,12 @@ When('the user puts the bucket website configuration', async function (this: Zen
});
});

When('the {string} endpoint is added to the overlay', async function (this: Zenko, endpoint: string) {
await this.addWebsiteEndpoint(endpoint);
});
When('the {string} endpoint is added to the overlay', { timeout: 15 * 60 * 1000 },
async function (this: Zenko, endpoint: string) {
await this.addWebsiteEndpoint(endpoint);
await waitForZenkoToStabilize(this, true);
await waitForDataServicesToStabilize(this);
});

When('the user creates an S3 Bucket policy granting public read access', async function (this: Zenko) {
const policy = {
Expand Down Expand Up @@ -82,5 +86,5 @@ Then('the user should be able to load the index.html file from the {string} endp
await Utils.sleep(1000);
}
}
assert.fail('Failed to fetch the bucket website after 20 tries');
assert.fail('Failed to fetch the bucket website after 60 tries');
});
Loading