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

[stable10] Add test with external storage / federation and quota #29203

Merged
merged 1 commit into from
Oct 11, 2017
Merged
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
8 changes: 8 additions & 0 deletions tests/integration/features/external-storage.feature
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,11 @@ Feature: external-storage
Then the HTTP status code should be "404"
And as "user0" the file "local_storage/foo3/textfile0.txt" does not exist

@local_storage
Scenario: Upload a file to external storage while quota is set on home storage
Given user "user0" exists
And user "user0" has a quota of "1 B"
And as an "user0"
When user "user0" uploads file "data/textfile.txt" to "/local_storage/testquota.txt" with all mechanisms
Then the HTTP status code of all upload responses should be "201"
And as "user0" the file "local_storage/textquota.txt" exists
14 changes: 14 additions & 0 deletions tests/integration/federation_features/federated.feature
Original file line number Diff line number Diff line change
Expand Up @@ -221,3 +221,17 @@ Feature: federated
Then using server "LOCAL"
And as an "user0"
And etag of element "/PARENT" of user "user0" has changed

@local_storage
Scenario: Upload file to received federated share while quota is set on home storage
Given using server "REMOTE"
And user "user1" exists
And using server "LOCAL"
And user "user0" exists
And user "user0" from server "LOCAL" shares "/PARENT" with user "user1" from server "REMOTE"
And user "user1" from server "REMOTE" accepts last pending share
And using server "REMOTE"
When user "user1" uploads file "data/textfile.txt" to "/PARENT/testquota.txt" with all mechanisms
Then the HTTP status code of all upload responses should be "201"
And as "user0" the file "/PARENT/textquota.txt" exists