summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-06-17 12:06:50 +0200
committerJoas Schilling <coding@schilljs.com>2020-06-23 14:55:26 +0200
commit00ec9e71e966b90b98990f530b473ae03ee0fe75 (patch)
treeed31b05f0e0fa5d344ad3b516f997340a4750dff /build
parent1e3748f6723c5d706b5d078cf21a6779af8e42ba (diff)
downloadnextcloud-server-00ec9e71e966b90b98990f530b473ae03ee0fe75.tar.gz
nextcloud-server-00ec9e71e966b90b98990f530b473ae03ee0fe75.zip
Add another test for exact matching of a user in group restriction
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'build')
-rw-r--r--build/integration/sharees_features/sharees.feature17
1 files changed, 17 insertions, 0 deletions
diff --git a/build/integration/sharees_features/sharees.feature b/build/integration/sharees_features/sharees.feature
index 5a6291d1e2f..1d770b96b72 100644
--- a/build/integration/sharees_features/sharees.feature
+++ b/build/integration/sharees_features/sharees.feature
@@ -72,6 +72,23 @@ Feature: sharees
And "exact remotes" sharees returned is empty
And "remotes" sharees returned is empty
+ Scenario: Search only with group members - allowed with exact match
+ Given As an "test"
+ And parameter "shareapi_only_share_with_group_members" of app "core" is set to "yes"
+ And user "Sharee1" belongs to group "ShareeGroup"
+ When getting sharees for
+ | search | Sharee1 |
+ | itemType | file |
+ Then the OCS status code should be "100"
+ And the HTTP status code should be "200"
+ And "exact users" sharees returned are
+ | Sharee1 | 0 | Sharee1 |
+ And "users" sharees returned is empty
+ And "exact groups" sharees returned is empty
+ And "groups" sharees returned is empty
+ And "exact remotes" sharees returned is empty
+ And "remotes" sharees returned is empty
+
Scenario: Search only with group members - no group as non-member
Given As an "Sharee1"
And parameter "shareapi_only_share_with_group_members" of app "core" is set to "yes"