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

fix(sdk): local bucket files can't be accessed in simulator #7143

Merged
merged 3 commits into from
Sep 18, 2024
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
remove test
Chriscbr committed Sep 18, 2024
commit 290d04be67c6150858806178609910645804590b
19 changes: 0 additions & 19 deletions tests/sdk_tests/bucket/signed_url.test.w
Original file line number Diff line number Diff line change
@@ -33,25 +33,6 @@ test "signedUrl GET (explicit)" {
expect.equal(output, VALUE);
}

test "signedUrl GET with non-existent key" {
let assertThrows = (expected: str, block: (): void) => {
let var error = false;
try {
block();
} catch actual {
expect.equal(actual, expected);
error = true;
}
expect.equal(error, true);
};
let UNEXISTING_KEY = "no-such-file.txt";
let OBJECT_DOES_NOT_EXIST_ERROR = "Cannot provide signed url for a non-existent key (key={UNEXISTING_KEY})";

assertThrows(OBJECT_DOES_NOT_EXIST_ERROR, () => {
bucket.signedUrl(UNEXISTING_KEY);
});
}

test "signedUrl PUT" {
let KEY = "tempfile.txt";
let VALUE = "Hello, Wing!";