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

Add a test for R2 multipart upload support to the test suite itself #273

Closed
Closed
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
2 changes: 1 addition & 1 deletion .github/workflows/pullrequest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
run: |
git clone https://github.com/cloudflare/miniflare.git
cd miniflare
git checkout 9d96aaa66aa48eb1107c86fe24cbfd444249533c
git checkout v2.12.1
cd packages/miniflare
npm i
npm link
Expand Down
6 changes: 6 additions & 0 deletions worker-sandbox/tests/requests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,12 @@ fn r2_put_with_properties() {
assert_eq!(body, "ok");
}

#[test]
fn r2_put_multipart() {
let body = put("r2/put-multipart", |r| r).text().unwrap();
assert_eq!(body, "ok");
}

#[test]
fn r2_delete() {
let body = delete("r2/delete", |r| r).text().unwrap();
Expand Down