diff --git a/tests/acceptance/features/coreApiWebdavUploadTUS/lowLevelUpload.feature b/tests/acceptance/features/coreApiWebdavUploadTUS/lowLevelUpload.feature index c34202b8d0..c3e85edfd1 100644 --- a/tests/acceptance/features/coreApiWebdavUploadTUS/lowLevelUpload.feature +++ b/tests/acceptance/features/coreApiWebdavUploadTUS/lowLevelUpload.feature @@ -90,3 +90,25 @@ Feature: low level tests for upload of chunks | old | | new | | spaces | + + @issue-2409 + Scenario Outline: finalize a chunked upload and get the etag and permissions + Given using DAV path + And user "Alice" has created a new TUS resource on the WebDAV API with these headers: + | Upload-Length | 10 | + # ZmlsZS50eHQ= is the base64 encode of file.txt + | Upload-Metadata | filename ZmlsZS50eHQ= | + When user "Alice" sends a chunk to the last created TUS Location with offset "0" and data "123" using the WebDAV API + And user "Alice" sends a chunk to the last created TUS Location with offset "3" and data "4567890" using the WebDAV API + Then the HTTP status code should be "204" + And the following headers should be set + | header | value | + | OC-Perm | RDNVWZP | + And the following headers should match these regular expressions + | OC-ETag | /^"[a-f0-9:.]{1,32}"$/ | + | ETag | /^"[a-f0-9:.]{1,32}"$/ | + Examples: + | dav-path-version | + | old | + | new | + | spaces |