summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorSergio Bertolin <sbertolin@solidgear.es>2016-04-22 09:21:58 +0000
committerRoeland Jago Douma <rullzer@owncloud.com>2016-05-31 10:41:38 +0200
commita7167409e73489175a8ef3934a62137d083eef62 (patch)
treebfa92da83b39c72d4152daf513a91140e150656d /build
parentdc05f979c26c133966c07cf4df00e9746f3e1b12 (diff)
downloadnextcloud-server-a7167409e73489175a8ef3934a62137d083eef62.tar.gz
nextcloud-server-a7167409e73489175a8ef3934a62137d083eef62.zip
Added another case about overwriting folder using old chunking
Diffstat (limited to 'build')
-rw-r--r--build/integration/federation_features/federated.feature28
1 files changed, 12 insertions, 16 deletions
diff --git a/build/integration/federation_features/federated.feature b/build/integration/federation_features/federated.feature
index e1415e17325..c199ee2af60 100644
--- a/build/integration/federation_features/federated.feature
+++ b/build/integration/federation_features/federated.feature
@@ -150,7 +150,7 @@ Feature: federated
And Downloading file "/PARENT (2)/textfile0.txt" with range "bytes=0-8"
Then Downloaded content should be "BLABLABLA"
- Scenario: Overwrite a federated shared file as recipient using new chunking
+ Scenario: Overwrite a federated shared file as recipient using old chunking
Given Using server "REMOTE"
And user "user1" exists
And user "user2" exists
@@ -160,31 +160,27 @@ Feature: federated
And User "user1" from server "REMOTE" accepts last pending share
And Using server "REMOTE"
And As an "user1"
- And using dav path "remote.php/dav"
- And user "user1" creates a new chunking upload with id "chunking-42"
- And user "user1" uploads new chunk file "3" with "CCCCC" to id "chunking-42"
- And user "user1" uploads new chunk file "2" with "BBBBB" to id "chunking-42"
- And user "user1" uploads new chunk file "1" with "AAAAA" to id "chunking-42"
- And user "user1" moves new chunk file with id "chunking-42" to "/textfile0 (2).txt"
- And using dav path "remote.php/webdav"
- And Downloading file "/textfile0 (2).txt" with range "bytes=0-4"
+ And user "user1" uploads chunk file "1" of "3" with "AAAAA" to "/textfile0 (2).txt"
+ And user "user1" uploads chunk file "2" of "3" with "BBBBB" to "/textfile0 (2).txt"
+ And user "user1" uploads chunk file "3" of "3" with "CCCCC" to "/textfile0 (2).txt"
+ When Downloading file "/textfile0 (2).txt" with range "bytes=0-4"
Then Downloaded content should be "AAAAA"
- Scenario: Overwrite a federated shared file as recipient using old chunking
+ Scenario: Overwrite a federated shared folder as recipient using old chunking
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 "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" uploads chunk file "1" of "3" with "AAAAA" to "/textfile0 (2).txt"
- And user "user1" uploads chunk file "2" of "3" with "BBBBB" to "/textfile0 (2).txt"
- And user "user1" uploads chunk file "3" of "3" with "CCCCC" to "/textfile0 (2).txt"
- And Downloading file "/textfile0 (2).txt" with range "bytes=0-4"
- Then Downloaded content should be "AAAAA"
+ And user "user1" uploads chunk file "1" of "3" with "AAAAA" to "/PARENT (2)/textfile0.txt"
+ And user "user1" uploads chunk file "2" of "3" with "BBBBB" to "/PARENT (2)/textfile0.txt"
+ And user "user1" uploads chunk file "3" of "3" with "CCCCC" to "/PARENT (2)/textfile0.txt"
+ When Downloading file "/PARENT (2)/textfile0.txt" with range "bytes=5-9"
+ Then Downloaded content should be "BBBBB"