File tree Expand file tree Collapse file tree
build/integration/sharing_features Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,6 +21,36 @@ Feature: sharing
2121 And User "user2" should be included in the response
2222 And User "user3" should not be included in the response
2323
24+ Scenario : getting all shares of a file with reshares with link share with less permissions
25+ Given user "user0" exists
26+ And user "user1" exists
27+ When as "user0" creating a share with
28+ | path | textfile0 .txt |
29+ | shareType | 0 |
30+ | shareWith | user1 |
31+ | permissions | 17 |
32+ Then the OCS status code should be "100"
33+ And the HTTP status code should be "200"
34+ When as "user0" creating a share with
35+ | path | textfile0 .txt |
36+ | shareType | 3 |
37+ | permissions | 19 |
38+ Then the OCS status code should be "100"
39+ And the HTTP status code should be "200"
40+ And last link share can be downloaded
41+ When As an "user1"
42+ And sending "GET" to "/apps/files_sharing/api/v1/shares?reshares=true&path=textfile0 (2).txt"
43+ Then the OCS status code should be "100"
44+ And the HTTP status code should be "200"
45+ And User "user1" should not be included in the response
46+ Then the list of returned shares has 1 shares
47+ And share 0 is returned with
48+ | share_type | 3 |
49+ | uid_owner | user0 |
50+ | token | |
51+ | url | |
52+ | permissions | 19 |
53+
2454 Scenario : getting all shares of a file with a received share after revoking the resharing rights
2555 Given user "user0" exists
2656 And user "user1" exists
You can’t perform that action at this time.
0 commit comments