adjust tus test using resource URL to curretn behaviour
This commit is contained in:
+1
-1
@@ -17,7 +17,7 @@ config = {
|
|||||||
},
|
},
|
||||||
'apiTests': {
|
'apiTests': {
|
||||||
'coreBranch': 'master',
|
'coreBranch': 'master',
|
||||||
'coreCommit': 'c84aa4e95ac98f06dc2c17c570e65c36bfc17a78',
|
'coreCommit': '38c91e5cf5fc4ffdc0536ba1d147a2a618ef83b5',
|
||||||
'numberOfParts': 10
|
'numberOfParts': 10
|
||||||
},
|
},
|
||||||
'uiTests': {
|
'uiTests': {
|
||||||
|
|||||||
@@ -2551,3 +2551,7 @@ apiWebdavUploadTUS/uploadFile.feature:139
|
|||||||
apiWebdavUploadTUS/uploadFile.feature:140
|
apiWebdavUploadTUS/uploadFile.feature:140
|
||||||
apiWebdavUploadTUS/uploadFile.feature:141
|
apiWebdavUploadTUS/uploadFile.feature:141
|
||||||
apiWebdavUploadTUS/uploadFile.feature:142
|
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:140
|
||||||
apiWebdavUploadTUS/uploadFile.feature:141
|
apiWebdavUploadTUS/uploadFile.feature:141
|
||||||
apiWebdavUploadTUS/uploadFile.feature:142
|
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