-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add api tests for tus upload when quota is set
- Loading branch information
Showing
4 changed files
with
103 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
@api @skipOnOcV10 | ||
Feature: upload resources using TUS protocol | ||
As a user | ||
I want to be able to upload files | ||
So that I can store and share files between multiple client systems | ||
|
||
Background: | ||
Given these users have been created with default attributes and without skeleton files: | ||
| username | | ||
| Alice | | ||
And the administrator has given "Alice" the role "Space Admin" using the settings api | ||
|
||
|
||
Scenario: upload a file within the set quota to a project space | ||
Given user "Alice" has created a space "Project Jupiter" of type "project" with quota "10000" | ||
When user "Alice" uploads a file "lorem.txt" via TUS inside of the space "Project Jupiter" using the WebDAV API | ||
Then the HTTP status code should be "204" | ||
|
||
|
||
Scenario: upload a file bigger than the set quota to a project space | ||
Given user "Alice" has created a space "Project Jupiter" of type "project" with quota "10" | ||
When user "Alice" creates a new TUS resource "lorem.txt" for the space "Project Jupiter" using the WebDAV API | ||
Then the HTTP status code should be "507" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, | ||
totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae | ||
dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, | ||
sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est | ||
qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora | ||
incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum | ||
exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? |