Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API test for gettingShares #31519

Merged
merged 1 commit into from
May 25, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions tests/acceptance/features/apiSharing-v1/gettingShares.feature
Original file line number Diff line number Diff line change
Expand Up @@ -123,3 +123,12 @@ Scenario: Share of folder to a group, remove user from that group
But user "user2" should not see the following elements
| /PARENT%20(2)/ |
| /PARENT%20(2)/parent.txt |

Scenario: getting all the shares inside the folder
Given user "user0" has been created
And user "user1" has been created
And user "user0" has shared file "PARENT/parent.txt" with user "user1"
When user "user0" sends HTTP method "GET" to API endpoint "/apps/files_sharing/api/v1/shares?path=PARENT&subfiles=true"
Then the OCS status code should be "100"
And the HTTP status code should be "200"
And file "parent.txt" should be included in the response