]> source.dussan.org Git - nextcloud-server.git/commitdiff
Add another test for exact matching of a user in group restriction
authorJoas Schilling <coding@schilljs.com>
Wed, 17 Jun 2020 10:06:50 +0000 (12:06 +0200)
committerJoas Schilling <coding@schilljs.com>
Wed, 17 Jun 2020 10:06:50 +0000 (12:06 +0200)
Signed-off-by: Joas Schilling <coding@schilljs.com>
build/integration/sharees_features/sharees.feature

index 5a6291d1e2f73120c7b0540bf39dc394abe33d24..1d770b96b720876886497497c8c2a080d78b74e3 100644 (file)
@@ -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"