Skip to content

Commit

Permalink
add tests for uploading to shared files
Browse files Browse the repository at this point in the history
  • Loading branch information
swoichha committed Mar 10, 2021
1 parent a1fbe8d commit e05fc8a
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/acceptance/features/apiWebdavUploadTUS/uploadToShare.feature
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,20 @@ Feature: upload file to shared folder
| dav_version |
| old |
| new |

Scenario Outline: Uploading file to a received share folder
Given using <dav_version> DAV path
And user "Alice" has created folder "/FOLDER"
And user "Alice" has shared folder "/FOLDER" with user "Brian"
And user "Brian" has accepted share "/FOLDER" offered by user "Alice"
When user "Brian" creates a new TUS resource on the WebDAV API with these headers:
| Tus-Resumable | 1.0.0 |
| Upload-Length | 16 |
| Upload-Metadata | filename L1NoYXJlcy9GT0xERVIvdGV4dGZpbGUudHh0 |
And user "Brian" uploads file with checksum "MD5 827ccb0eea8a706c4c34a16891f84e7b" to the last created TUS Location with offset "0" and content "uploaded content" using the TUS protocol on the WebDAV API
Then as "Alice" file "/FOLDER/textfile.txt" should exist
And the content of file "/FOLDER/textfile.txt" for user "Alice" should be "uploaded content"
Examples:
| dav_version |
| old |
| new |

0 comments on commit e05fc8a

Please sign in to comment.