diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2017-08-10 12:14:02 +0200 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2017-12-15 14:46:44 +0100 |
commit | 74df27b7a756d948e6df94cda3fda9585ae78f7c (patch) | |
tree | ba87d3e060b1507faad73f6a0ad51daa38463b33 /build/integration/features/webdav-related.feature | |
parent | 8c5d656f3b605a8cedbf412b7498b936e12866e6 (diff) | |
download | nextcloud-server-74df27b7a756d948e6df94cda3fda9585ae78f7c.tar.gz nextcloud-server-74df27b7a756d948e6df94cda3fda9585ae78f7c.zip |
Add integration tests for length header on new chunking
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'build/integration/features/webdav-related.feature')
-rw-r--r-- | build/integration/features/webdav-related.feature | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/build/integration/features/webdav-related.feature b/build/integration/features/webdav-related.feature index b8ed1c4a778..77fe811fada 100644 --- a/build/integration/features/webdav-related.feature +++ b/build/integration/features/webdav-related.feature @@ -578,3 +578,23 @@ Feature: webdav-related And user "user0" created a folder "/testshare" When User "user0" moves folder "/testshare" to "/hola%5Chola" Then the HTTP status code should be "400" + + Scenario: Upload file via new chunking endpoint with wrong size header + Given using new dav path + And user "user0" exists + 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 "/myChunkedFile.txt" with size 5 + Then the HTTP status code should be "400" + + Scenario: Upload file via new chunking endpoint with correct size header + Given using new dav path + And user "user0" exists + 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 "/myChunkedFile.txt" with size 15 + Then the HTTP status code should be "201" |