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

[Tests-Only] Add acceptance test to get all shares of a sharer when the receiver already has a file that matches shared file name #207

Merged
merged 1 commit into from
Jun 19, 2020
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
14 changes: 14 additions & 0 deletions tests/acceptance/features/webUIUserKeysType/userKeys.feature
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,17 @@ Feature: encrypt files using user specific keys
When the administrator decrypts user keys based encryption with recovery key "recoverypass" using the occ command
Then file "textfile0.txt" of user "Alice" should not be encrypted
And file "textfile0.txt" of user "Brian" should not be encrypted

@issue-encryption-206
Scenario Outline: Sharer shares a file where receiver already has a file with the matching name
Given using OCS API version "<ocs_api_version>"
And user "Brian" has been created with default attributes and skeleton files
And user "Alice" has shared file "textfile0.txt" with user "Brian"
When user "Alice" gets all shares shared by him using the sharing API
Then the OCS status code should be "<ocs_status_code>"
And the HTTP status code should be "200"
And file "textfile0 (2).txt" should be included in the response
Examples:
| ocs_api_version | ocs_status_code |
| 1 | 100 |
| 2 | 200 |