Skip to content

Commit

Permalink
Merge pull request #31543 from paurakhsharma/stable10-API-test-gettin…
Browse files Browse the repository at this point in the history
…gShares

[stable10] API test for gettingShares
  • Loading branch information
phil-davis authored May 28, 2018
2 parents d9b2aaf + b4f50dc commit dd36b39
Showing 1 changed file with 9 additions and 0 deletions.
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 @@ -124,3 +124,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

0 comments on commit dd36b39

Please sign in to comment.