aboutsummaryrefslogtreecommitdiffstats
path: root/build/integration/collaboration_features/autocomplete.feature
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2021-12-02 11:54:04 +0100
committerJulius Härtl <jus@bitgrid.net>2021-12-08 09:08:54 +0100
commit2fe8042fff7853b57c9943748bc7dc8b820bd030 (patch)
tree6f8eb81d9bff1cc25b23bba046a02e0b9131a283 /build/integration/collaboration_features/autocomplete.feature
parent7b76253aee280c9664e03e9dc982c631c6b42c5a (diff)
downloadnextcloud-server-2fe8042fff7853b57c9943748bc7dc8b820bd030.tar.gz
nextcloud-server-2fe8042fff7853b57c9943748bc7dc8b820bd030.zip
Add integration tests for email completion
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'build/integration/collaboration_features/autocomplete.feature')
-rw-r--r--build/integration/collaboration_features/autocomplete.feature41
1 files changed, 41 insertions, 0 deletions
diff --git a/build/integration/collaboration_features/autocomplete.feature b/build/integration/collaboration_features/autocomplete.feature
index e20993e420e..df7b81b9148 100644
--- a/build/integration/collaboration_features/autocomplete.feature
+++ b/build/integration/collaboration_features/autocomplete.feature
@@ -38,6 +38,47 @@ Feature: autocomplete
Then get autocomplete for "autocomplete"
| id | source |
+ Scenario: getting autocomplete emails from address book with enumeration
+ Given As an "admin"
+ And sending "PUT" to "/cloud/users/autocomplete" with
+ | key | email |
+ | value | autocomplete@example.com |
+ And there is a contact in an addressbook
+ Then get email autocomplete for "example"
+ | id | source |
+ | autocomplete | users |
+ | user@example.com | emails |
+ Then get email autocomplete for "auto"
+ | id | source |
+ | autocomplete | users |
+ Then get email autocomplete for "example"
+ | id | source |
+ | autocomplete | users |
+ | user@example.com | emails |
+ Then get email autocomplete for "autocomplete@example.com"
+ | id | source |
+ | autocomplete | users |
+
+ Scenario: getting autocomplete emails from address book without enumeration
+ Given As an "admin"
+ And sending "PUT" to "/cloud/users/autocomplete" with
+ | key | email |
+ | value | autocomplete@example.com |
+ And there is a contact in an addressbook
+ And parameter "shareapi_allow_share_dialog_user_enumeration" of app "core" is set to "no"
+ When parameter "shareapi_restrict_user_enumeration_full_match" of app "core" is set to "no"
+ Then get email autocomplete for "example"
+ | id | source |
+ | user@example.com | emails |
+ When parameter "shareapi_restrict_user_enumeration_full_match" of app "core" is set to "yes"
+ Then get email autocomplete for "auto"
+ | id | source |
+ Then get email autocomplete for "example"
+ | id | source |
+ | user@example.com | emails |
+ Then get email autocomplete for "autocomplete@example.com"
+ | id | source |
+ | autocomplete | users |
Scenario: getting autocomplete with limited enumeration by group
Given As an "admin"