Skip to content

Commit

Permalink
test 2.8
Browse files Browse the repository at this point in the history
  • Loading branch information
williamlardier committed May 8, 2024
1 parent f9d21fb commit 50bba36
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions tests/ctst/common/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,8 @@ When('i restore object {string} for {int} days', async function (this: Zenko, ob
this.addCommandParameter({ versionId });
}
this.addCommandParameter({ restoreRequest: `Days=${days}` });
await S3.restoreObject(this.getCommandParameters());
const result = await S3.restoreObject(this.getCommandParameters());
this.setResult(result);
});

// wait for object to transition to a location or get restored from it
Expand Down Expand Up @@ -492,15 +493,3 @@ When('I PUT an object with size {int}', async function (this: Zenko, size: numbe
const result = await putObject(this, this.getSaved<string>('objectName'));
this.setResult(result);
});

When('i delete object {string}', async function (this: Zenko, objectName: string) {
const objName = objectName || this.getSaved<string>('objectName');
this.resetCommand();
this.addCommandParameter({ bucket: this.getSaved<string>('bucketName') });
this.addCommandParameter({ key: objName });
const versionId = this.getSaved<Map<string, string>>('createdObjects')?.get(objName);
if (versionId) {
this.addCommandParameter({ versionId });
}
await S3.deleteObject(this.getCommandParameters());
});

0 comments on commit 50bba36

Please sign in to comment.