diff options
author | Sergio Bertolin <sbertolin@solidgear.es> | 2016-04-14 12:27:17 +0000 |
---|---|---|
committer | Roeland Jago Douma <rullzer@owncloud.com> | 2016-05-31 10:41:38 +0200 |
commit | c6a5a430093421dedea526cd096e62fd5a4be8d2 (patch) | |
tree | 45f0bb304a03b0af6e3343ff64f4acb56fbc0541 /build/integration/federation_features | |
parent | 59ed464ee63a0719eeed3bbc2864749a2ce04ff0 (diff) | |
download | nextcloud-server-c6a5a430093421dedea526cd096e62fd5a4be8d2.tar.gz nextcloud-server-c6a5a430093421dedea526cd096e62fd5a4be8d2.zip |
Added tests about overwriting files and folders as recipient
Diffstat (limited to 'build/integration/federation_features')
-rw-r--r-- | build/integration/federation_features/federated.feature | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/build/integration/federation_features/federated.feature b/build/integration/federation_features/federated.feature index acd1f91e908..7dcf97e5764 100644 --- a/build/integration/federation_features/federated.feature +++ b/build/integration/federation_features/federated.feature @@ -120,6 +120,36 @@ Feature: federated | share_with | user2 | | share_with_displayname | user2 | + Scenario: Overwrite a federated shared file as recipient + Given Using server "REMOTE" + And user "user1" exists + And user "user2" exists + And Using server "LOCAL" + And user "user0" exists + And User "user0" from server "LOCAL" shares "/textfile0.txt" with user "user1" from server "REMOTE" + And User "user1" from server "REMOTE" accepts last pending share + And Using server "REMOTE" + And As an "user1" + And User "user1" modifies text of "/textfile0.txt" with text "BLABLABLA" + When User "user1" uploads file "../../data/user1/files/textfile0.txt" to "/textfile0 (2).txt" + And Downloading file "/textfile0 (2).txt" with range "bytes=0-8" + Then Downloaded content should be "BLABLABLA" + + Scenario: Overwrite a federated shared folder as recipient + Given Using server "REMOTE" + And user "user1" exists + And user "user2" 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" + And As an "user1" + And User "user1" modifies text of "/textfile0.txt" with text "BLABLABLA" + When User "user1" uploads file "../../data/user1/files/textfile0.txt" to "/PARENT (2)/textfile0.txt" + And Downloading file "/PARENT (2)/textfile0.txt" with range "bytes=0-8" + Then Downloaded content should be "BLABLABLA" + |