diff --git a/.drone.star b/.drone.star index ced8b9f013..bdb999c02e 100644 --- a/.drone.star +++ b/.drone.star @@ -17,7 +17,7 @@ config = { }, 'apiTests': { 'coreBranch': 'master', - 'coreCommit': 'c84aa4e95ac98f06dc2c17c570e65c36bfc17a78', + 'coreCommit': '38c91e5cf5fc4ffdc0536ba1d147a2a618ef83b5', 'numberOfParts': 10 }, 'uiTests': { diff --git a/tests/acceptance/expected-failures-on-OCIS-storage.txt b/tests/acceptance/expected-failures-on-OCIS-storage.txt index 8aa865f6e8..a18b016db7 100644 --- a/tests/acceptance/expected-failures-on-OCIS-storage.txt +++ b/tests/acceptance/expected-failures-on-OCIS-storage.txt @@ -2551,3 +2551,7 @@ apiWebdavUploadTUS/uploadFile.feature:139 apiWebdavUploadTUS/uploadFile.feature:140 apiWebdavUploadTUS/uploadFile.feature:141 apiWebdavUploadTUS/uploadFile.feature:142 + +# https://github.com/owncloud/ocis/issues/1141 upload a file using TUS resource URL as an other user should not work +apiWebdavUploadTUS/uploadFile.feature:155 +apiWebdavUploadTUS/uploadFile.feature:156 diff --git a/tests/acceptance/expected-failures-on-OWNCLOUD-storage.txt b/tests/acceptance/expected-failures-on-OWNCLOUD-storage.txt index 56b7db36a9..2d77f38ac8 100644 --- a/tests/acceptance/expected-failures-on-OWNCLOUD-storage.txt +++ b/tests/acceptance/expected-failures-on-OWNCLOUD-storage.txt @@ -2480,3 +2480,7 @@ apiWebdavUploadTUS/uploadFile.feature:139 apiWebdavUploadTUS/uploadFile.feature:140 apiWebdavUploadTUS/uploadFile.feature:141 apiWebdavUploadTUS/uploadFile.feature:142 + +# https://github.com/owncloud/ocis/issues/1141 upload a file using TUS resource URL as an other user should not work +apiWebdavUploadTUS/uploadFile.feature:155 +apiWebdavUploadTUS/uploadFile.feature:156 diff --git a/tests/acceptance/features/apiOcisSpecific/apiWebdavUploadTUS-uploadFile.feature b/tests/acceptance/features/apiOcisSpecific/apiWebdavUploadTUS-uploadFile.feature new file mode 100644 index 0000000000..d17cb4e61b --- /dev/null +++ b/tests/acceptance/features/apiOcisSpecific/apiWebdavUploadTUS-uploadFile.feature @@ -0,0 +1,21 @@ +@api @issue-ocis-1141 +# after fixing all issues delete these Scenarios and use the one from oC10 core +Feature: upload file + As a user + I want to be able to upload files + So that I can store and share files between multiple client systems + + Scenario Outline: upload a file using the resource URL of another user + Given using DAV path + And user "Alice" has been created with default attributes and without skeleton files + And user "Brian" has been created with default attributes and without skeleton files + And user "Alice" has created a new TUS resource on the WebDAV API with these headers: + | Upload-Length | 5 | + | Upload-Metadata | filename dGV4dEZpbGUudHh0 | + When user "Brian" sends a chunk to the last created TUS Location with offset "0" and data "12345" using the WebDAV API + Then the HTTP status code should be "204" + And as "Alice" file "/textFile.txt" should exist + Examples: + | dav_version | + | old | + | new |