Added case when final chunk move must not change file id

This commit is contained in:
Vincent Petry 2017-03-27 18:50:02 +02:00 committed by Joas Schilling
parent 9ab17c95c0
commit c30feafaa2
No known key found for this signature in database
GPG Key ID: E166FD8976B3BAC8
1 changed files with 13 additions and 0 deletions

View 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"