]> source.dussan.org Git - nextcloud-server.git/commitdiff
Added case when final chunk move must not change file id
authorVincent Petry <pvince81@owncloud.com>
Mon, 27 Mar 2017 16:50:02 +0000 (18:50 +0200)
committerJoas Schilling <coding@schilljs.com>
Wed, 26 Apr 2017 13:26:15 +0000 (15:26 +0200)
build/integration/features/webdav-related.feature

index 457d92d52a6d4cd6be5e7b0d28be069c8c18a815..231f49f43986387f5a3a3ff761e997b2a8bb3e65 100644 (file)
@@ -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"
+