Skip to content

Commit

Permalink
Merge pull request #35537 from bhawanaprasain/stable10-skeletonfiless…
Browse files Browse the repository at this point in the history
…haring

[Stable10]skeletonfilessharing
  • Loading branch information
individual-it authored Jun 17, 2019
2 parents 19342ee + 31c3cbe commit 2922499
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tests/acceptance/features/apiShareManagement/acceptShares.feature
Original file line number Diff line number Diff line change
Expand Up @@ -432,3 +432,22 @@ Feature: accept/decline shares coming from internal users
| path |
| /PARENT/ |
And the sharing API should report that no shares are shared with user "user0"

Scenario: user accepts file that was initially accepted from another user and then declined
Given parameter "shareapi_auto_accept_share" of app "core" has been set to "no"
And user "user0" has uploaded file with content "file from user0" to "/testfile.txt"
And user "user1" has uploaded file with content "file from user1" to "/testfile.txt"
And user "user2" has uploaded file with content "file from user2" to "/testfile.txt"
And user "user0" has shared file "/testfile.txt" with user "user2"
And user "user2" has accepted the share "/testfile.txt" offered by user "user0"
When user "user2" declines the share "/testfile (2).txt" offered by user "user0" using the sharing API
And user "user1" shares file "/testfile.txt" with user "user2" using the sharing API
And user "user2" accepts the share "/testfile.txt" offered by user "user1" using the sharing API
And user "user2" accepts the share "/testfile.txt" offered by user "user0" using the sharing API
Then the sharing API should report to user "user2" that these shares are in the accepted state
| path |
| /testfile (2).txt |
| /testfile (2) (2).txt |
And the content of file "/testfile.txt" for user "user2" should be "file from user2"
And the content of file "/testfile (2).txt" for user "user2" should be "file from user1"
And the content of file "/testfile (2) (2).txt" for user "user2" should be "file from user0"

0 comments on commit 2922499

Please sign in to comment.