Skip to content

Commit

Permalink
Merge pull request #27987 from owncloud/inttest-unsharing-something-r…
Browse files Browse the repository at this point in the history
…eshared-with-you

Added test case about not seeing own shares reshared with them
  • Loading branch information
Vincent Petry committed May 24, 2017
2 parents cf34b5b + 3cfbb33 commit cbc6a85
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/integration/features/sharing-v1.feature
Expand Up @@ -1286,3 +1286,21 @@ Feature: sharing
And as "user0" the folder "/sub" exists in trash
And as "user0" the file "/sub/shared_file.txt" exists in trash

Scenario: User's own shares reshared to him doesn't appear when getting shared with me shares
Given As an "admin"
And user "user0" exists
And user "user1" exists
And group "group0" exists
And user "user1" belongs to group "group0"
And user "user0" created a folder "/shared"
And As an "user0"
And User "user0" moved file "/textfile0.txt" to "/shared/shared_file.txt"
And folder "/shared" of user "user0" is shared with user "user1"
And As an "user1"
And folder "/shared" of user "user1" is shared with group "group0"
And As an "user0"
When sending "GET" to "/apps/files_sharing/api/v1/shares?shared_with_me=true"
Then the OCS status code should be "100"
And the HTTP status code should be "200"
And last share_id is not included in the answer

0 comments on commit cbc6a85

Please sign in to comment.