26 lines
1.3 KiB
Gherkin
26 lines
1.3 KiB
Gherkin
@api @files_sharing-app-required @issue-2141
|
|
Feature: resharing can be done on a reshared resource
|
|
|
|
Background:
|
|
Given auto-accept shares has been disabled
|
|
And these users have been created with default attributes and without skeleton files:
|
|
| username |
|
|
| Alice |
|
|
| Brian |
|
|
| Carol |
|
|
| David |
|
|
|
|
@skipOnOcV10
|
|
Scenario: Reshared files can be still accessed if a user in the middle removes it.
|
|
Given user "Alice" has uploaded file with content "ownCloud test text file 0" to "/textfile0.txt"
|
|
And user "Alice" has shared file "textfile0.txt" with user "Brian"
|
|
And user "Brian" has accepted share "/textfile0.txt" offered by user "Alice"
|
|
And user "Brian" has shared file "/Shares/textfile0.txt" with user "Carol"
|
|
And user "Carol" has accepted share "/textfile0.txt" offered by user "Brian"
|
|
And user "Carol" has shared file "/Shares/textfile0.txt" with user "David"
|
|
And user "David" has accepted share "/textfile0.txt" offered by user "Carol"
|
|
When user "Brian" deletes file "/Shares/textfile0.txt" using the WebDAV API
|
|
Then the HTTP status code should be "204"
|
|
And the content of file "/Shares/textfile0.txt" for user "Carol" should be "ownCloud test text file 0"
|
|
And the content of file "/Shares/textfile0.txt" for user "David" should be "ownCloud test text file 0"
|