Skip to content

Commit

Permalink
Merge pull request #207 from owncloud/matching-name
Browse files Browse the repository at this point in the history
[Tests-Only] Add acceptance test to get all shares of a sharer when the receiver already has a file that matches shared file name
  • Loading branch information
haribhandari07 authored Jun 19, 2020
2 parents f35d86c + 8ec8bd2 commit 3a3c619
Showing 1 changed file with 14 additions and 0 deletions.
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 |

0 comments on commit 3a3c619

Please sign in to comment.