Skip to content
Merged
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
8 changes: 4 additions & 4 deletions tests/acceptance/features/api/directUpload.feature
Original file line number Diff line number Diff line change
Expand Up @@ -725,8 +725,8 @@ Feature: API endpoint for direct upload


Scenario: Upload a file into a folder, exceeding the users quota
Given the quota of user "Carol" has been set to "9 B"
And user "Carol" has created folder "/forOP"
Given user "Carol" has created folder "/forOP"
And the quota of user "Carol" has been set to "9 B"
And user "Carol" got a direct-upload token for "/forOP"
When an anonymous user sends a multipart form data POST request to the "direct-upload/%last-created-direct-upload-token%" endpoint with:
| file_name | file.txt |
Expand All @@ -748,9 +748,9 @@ Feature: API endpoint for direct upload

Scenario: Upload a file into a shared folder exceeding the quota of the user sharing the folder
Given user "Brian" has been created
And user "Brian" has created folder "/toShare"
And the quota of user "Carol" has been set to "10 B"
And the quota of user "Brian" has been set to "9 B"
And user "Brian" has created folder "/toShare"
And user "Brian" has shared folder "/toShare" with user "Carol" with "all" permissions
And user "Carol" got a direct-upload token for "/toShare"
When an anonymous user sends a multipart form data POST request to the "direct-upload/%last-created-direct-upload-token%" endpoint with:
Expand All @@ -773,9 +773,9 @@ Feature: API endpoint for direct upload

Scenario: Upload a file into a shared folder exceeding the quota of sharee but not that of sharer
Given user "Brian" has been created
And user "Brian" has created folder "/toShare"
And the quota of user "Carol" has been set to "10 B"
And the quota of user "Brian" has been set to "20 B"
And user "Brian" has created folder "/toShare"
And user "Brian" has shared folder "/toShare" with user "Carol" with "all" permissions
And user "Carol" got a direct-upload token for "/toShare"
When an anonymous user sends a multipart form data POST request to the "direct-upload/%last-created-direct-upload-token%" endpoint with:
Expand Down
Loading