Files

67 lines
2.8 KiB
Gherkin
Raw Permalink Normal View History

@skipOnReva @issue-1289 @issue-1328
2023-01-02 17:26:54 +05:45
Feature: sharing
2023-05-05 15:05:47 +05:45
As a user
I want to move shares that I received
So that I can organise them according to my needs
2023-01-02 17:26:54 +05:45
Background:
Given these users have been created with default attributes:
2023-01-02 17:26:54 +05:45
| username |
| Alice |
| Brian |
2023-05-05 15:05:47 +05:45
Scenario Outline: move files between shares by same user
2023-07-12 12:42:32 +05:45
Given using <dav-path-version> DAV path
2023-01-02 17:26:54 +05:45
And user "Alice" has created folder "share1"
And user "Alice" has created folder "share2"
And user "Alice" has uploaded file with content "some data" to "/textfile0.txt"
And user "Alice" has moved file "textfile0.txt" to "share1/textfile0.txt"
And user "Alice" has sent the following resource share invitation:
| resource | /share1 |
| space | Personal |
| sharee | Brian |
| shareType | user |
| permissionsRole | Editor |
2024-07-22 15:00:11 +05:45
And user "Brian" has a share "share1" synced
And user "Alice" has sent the following resource share invitation:
| resource | /share2 |
| space | Personal |
| sharee | Brian |
| shareType | user |
| permissionsRole | Editor |
2024-07-22 15:00:11 +05:45
And user "Brian" has a share "share2" synced
2023-01-02 17:26:54 +05:45
When user "Brian" moves file "/Shares/share1/textfile0.txt" to "/Shares/share2/textfile0.txt" using the WebDAV API
Then the HTTP status code should be "502"
2023-11-09 15:26:16 +01:00
And as "Brian" file "/Shares/share1/textfile0.txt" should exist
And as "Alice" file "share1/textfile0.txt" should exist
But as "Brian" file "/Shares/share2/textfile0.txt" should not exist
And as "Alice" file "share2/textfile0.txt" should not exist
2023-01-02 17:26:54 +05:45
Examples:
2023-07-12 12:42:32 +05:45
| dav-path-version |
| old |
| new |
| spaces |
2023-01-02 17:26:54 +05:45
Scenario Outline: overwrite a received file share
2023-07-12 12:42:32 +05:45
Given using <dav-path-version> DAV path
2023-01-02 17:26:54 +05:45
And user "Alice" has uploaded file with content "this is the old content" to "/textfile1.txt"
And user "Alice" has sent the following resource share invitation:
| resource | textfile1.txt |
| space | Personal |
| sharee | Brian |
| shareType | user |
| permissionsRole | File Editor |
2024-07-22 15:00:11 +05:45
And user "Brian" has a share "textfile1.txt" synced
2023-01-02 17:26:54 +05:45
When user "Brian" uploads file with content "this is a new content" to "/Shares/textfile1.txt" using the WebDAV API
Then the HTTP status code should be "204"
And as "Brian" file "Shares/textfile1.txt" should exist
And the content of file "Shares/textfile1.txt" for user "Brian" should be "this is a new content"
And the content of file "textfile1.txt" for user "Alice" should be "this is a new content"
Examples:
2023-07-12 12:42:32 +05:45
| dav-path-version |
| old |
| new |
| spaces |
2023-01-02 17:26:54 +05:45