adjust tus test using resource URL to curretn behaviour

This commit is contained in:
swoichha
2020-12-21 10:17:52 +05:45
parent 03273cc93f
commit 722e3808a9
4 changed files with 30 additions and 1 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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 |