From 8ec8bd28b239639e2f2e0fcd64e5f22e6fad176e Mon Sep 17 00:00:00 2001 From: HariBhandari07 Date: Thu, 18 Jun 2020 16:13:32 +0545 Subject: [PATCH] [Tests-Only] Add acceptance test to get all shares of a sharer when the receiver already has a file that matches shared file name --- .../features/webUIUserKeysType/userKeys.feature | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/acceptance/features/webUIUserKeysType/userKeys.feature b/tests/acceptance/features/webUIUserKeysType/userKeys.feature index 182ea59c..728f0e0a 100644 --- a/tests/acceptance/features/webUIUserKeysType/userKeys.feature +++ b/tests/acceptance/features/webUIUserKeysType/userKeys.feature @@ -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 "" + 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 "" + 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 | \ No newline at end of file