Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(bindings/nodejs): Implement presign test #2969

Merged
merged 1 commit into from
Aug 29, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 8 additions & 2 deletions bindings/nodejs/tests/binding.js
Expand Up @@ -75,6 +75,12 @@ Then('The async file {string} must have content {string}', async function (path,
assert(bs.toString() == content)
})

Then('The presign operation should success or raise exception Unsupported', function () {
// TODO: please implement me.
Then('The presign operation should success or raise exception Unsupported', async function () {
try {
await this.op.presignStat('path', 1000)
await this.op.presignRead('path', 1000)
await this.op.presignWrite('path', 1000)
} catch (e) {
assert.ok(e.message.includes('Unsupported'))
Xuanwo marked this conversation as resolved.
Show resolved Hide resolved
}
})