Files
opencloud/tests/acceptance/features/apiOcisSpecific/apiShareOperations-accessToShare.feature
2020-09-13 09:14:41 +05:45

28 lines
1.4 KiB
Gherkin

@api @files_sharing-app-required
Feature: sharing
Background:
Given these users have been created with default attributes and without skeleton files:
| username |
| Alice |
| Brian |
And user "Alice" has uploaded file with content "ownCloud test text file 0 Alice" to "/textfile0.txt"
And user "Alice" has uploaded file with content "ownCloud test text file 1 Alice" to "/textfile1.txt"
And user "Brian" has uploaded file with content "ownCloud test text file 0 Brian" to "/textfile0.txt"
And user "Brian" has uploaded file with content "ownCloud test text file 1 Brian" to "/textfile1.txt"
@issue-ocis-reva-260
# after fixing all issues delete this Scenario and use the one from oC10 core
Scenario Outline: Sharee can't see the share that is filtered out
Given using OCS API version "<ocs_api_version>"
And user "Alice" has shared file "textfile0.txt" with user "Brian"
And user "Alice" has shared file "textfile1.txt" with user "Brian"
When user "Brian" gets all the shares shared with him that are received as file "textfile0 (2).txt" using the provisioning API
Then the OCS status code should be "<ocs_status_code>"
And the HTTP status code should be "200"
And the last share_id should be included in the response
Examples:
| ocs_api_version | ocs_status_code |
| 1 | 100 |
| 2 | 200 |