mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-06 04:09:40 -06:00
adjust tus test using resource URL to curretn behaviour
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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_version> 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 |
|
||||
Reference in New Issue
Block a user