Skip to content

Commit

Permalink
Add test with external storage / federation and quota
Browse files Browse the repository at this point in the history
User quota does not apply to external storages not received federated
shares
  • Loading branch information
Vincent Petry committed Oct 10, 2017
1 parent 575b586 commit 943eb03
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
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

0 comments on commit 943eb03

Please sign in to comment.