Skip to content
Merged
Show file tree
Hide file tree
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
3 changes: 3 additions & 0 deletions .github/workflows/end2end.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,9 @@ jobs:
- name: Lint ctst tests
working-directory: tests/ctst
run: yarn lint
- name: Check for unused step definitions
working-directory: tests/ctst
run: yarn unused-steps
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
- name: Login to Registry
Expand Down
6 changes: 0 additions & 6 deletions tests/ctst/common/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,12 +202,6 @@ Given('{int} objects {string} of size {int} bytes with user metadata {string}',
assert.ifError(result?.stderr || result?.err);
});

Given('{int} mpu objects {string} of size {int} bytes with user metadata {string}',
async function (this: Zenko, numberObjects: number, objectName: string, sizeBytes: number, userMD: string) {
const result = await addMultipleObjects.call(this, numberObjects, objectName, sizeBytes, userMD);
assert.ifError(result?.stderr || result?.err);
});

Given('a tag on object {string} with key {string} and value {string}',
async function (this: Zenko, objectName: string, tagKey: string, tagValue: string) {
this.resetCommand();
Expand Down
3 changes: 2 additions & 1 deletion tests/ctst/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
},
"scripts": {
"build": "tsc --build tsconfig.json",
"lint": "eslint ."
"lint": "eslint .",
"unused-steps": "! cucumber-js --config cucumber.config.cjs --dry-run --format usage 2>&1 | grep UNUSED"
},
"resolutions": {
"@azure/core-client": "1.10.1"
Expand Down
11 changes: 0 additions & 11 deletions tests/ctst/steps/azureArchive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -482,14 +482,3 @@ When('i change azure archive location {string} container target', { timeout: 15
await waitForZenkoToStabilize(this, true);
await waitForDataServicesToStabilize(this);
});

Then('i can get the {string} location details', async function (this: Zenko, locationName: string) {
const result = await this.managementAPIRequest('GET', `/config/overlay/view/${this.parameters.InstanceID}`);
if ('err' in result) {
assert.ifError(result.err);
}
if ('data' in result) {
const { locations } = result.data as { locations: Record<string, unknown> };
assert(locations[locationName]);
}
});
11 changes: 0 additions & 11 deletions tests/ctst/steps/pra.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,17 +182,6 @@ Given('a DR installed', { timeout: installTimeout + 2000 }, async function (this
return;
});

Given('a DR failing to be installed', { timeout: 130000 }, async function (this: Zenko) {
Identity.useIdentity(IdentityEnum.ACCOUNT, Zenko.sites['source'].accountName);
const credentials = Identity.getCurrentCredentials();
await createSecret(this, 'drctl-s3-creds', {
accessKey: Buffer.from(credentials.accessKeyId).toString('base64'),
secretAccessKey: Buffer.from(credentials.secretAccessKey).toString('base64'),
});
await installPRA(this, 'http://s3.dr.zenko.local');
return;
});

Then('the DR sink should be in phase {string}', { timeout: 360000 }, async function (this: Zenko, state: string) {
let targetPhase;
switch (state) {
Expand Down
Loading