summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2017-03-27 18:50:02 +0200
committerJoas Schilling <coding@schilljs.com>2017-04-26 15:26:15 +0200
commitc30feafaa2f2fb86469f5c38a6e20ed3f3042873 (patch)
tree535f670ef4ee98182d7382ba0a316f5477b837e1 /build
parent9ab17c95c0746cced8a4f36bec58dc98ee229ef3 (diff)
downloadnextcloud-server-c30feafaa2f2fb86469f5c38a6e20ed3f3042873.tar.gz
nextcloud-server-c30feafaa2f2fb86469f5c38a6e20ed3f3042873.zip
Added case when final chunk move must not change file id
Diffstat (limited to 'build')
-rw-r--r--build/integration/features/webdav-related.feature13
1 files changed, 13 insertions, 0 deletions
diff --git a/build/integration/features/webdav-related.feature b/build/integration/features/webdav-related.feature
index 457d92d52a6..231f49f4398 100644
--- a/build/integration/features/webdav-related.feature
+++ b/build/integration/features/webdav-related.feature
@@ -529,3 +529,16 @@ Feature: webdav-related
And User "user0" stores id of file "/myChunkedFile.txt"
When User "user0" moves file "/myChunkedFile.txt" to "/FOLDER/myChunkedFile.txt"
Then User "user0" checks id of file "/FOLDER/myChunkedFile.txt"
+
+ Scenario: Checking file id after a move with overwrite using new endpoint
+ Given using new dav path
+ And user "user0" exists
+ And User "user0" copies file "/textfile0.txt" to "/existingFile.txt"
+ And User "user0" stores id of file "/existingFile.txt"
+ And user "user0" creates a new chunking upload with id "chunking-42"
+ And user "user0" uploads new chunk file "1" with "AAAAA" to id "chunking-42"
+ And user "user0" uploads new chunk file "2" with "BBBBB" to id "chunking-42"
+ And user "user0" uploads new chunk file "3" with "CCCCC" to id "chunking-42"
+ When user "user0" moves new chunk file with id "chunking-42" to "/existingFile.txt"
+ Then User "user0" checks id of file "/existingFile.txt"
+