mirror of
https://github.com/nextcloud/server.git
synced 2026-04-14 13:38:10 -04:00
test: Extend tests to check the same cases with and without full match
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
This commit is contained in:
parent
d726f51609
commit
e28e1e2ea6
1 changed files with 14 additions and 0 deletions
|
|
@ -47,11 +47,20 @@ Feature: autocomplete
|
|||
| key | email |
|
||||
| value | autocomplete@example.com |
|
||||
And there is a contact in an addressbook
|
||||
When parameter "shareapi_restrict_user_enumeration_full_match" of app "core" is set to "no"
|
||||
Then get email autocomplete for "auto"
|
||||
| id | source |
|
||||
| autocomplete | users |
|
||||
Then get email autocomplete for "example"
|
||||
| id | source |
|
||||
| autocomplete | users |
|
||||
| leon@example.com | emails |
|
||||
| user@example.com | emails |
|
||||
Then get email autocomplete for "autocomplete@example.com"
|
||||
| id | source |
|
||||
| autocomplete | users |
|
||||
| autocomplete@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 |
|
||||
| autocomplete | users |
|
||||
|
|
@ -72,10 +81,15 @@ Feature: autocomplete
|
|||
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 "auto"
|
||||
| id | source |
|
||||
Then get email autocomplete for "example"
|
||||
| id | source |
|
||||
| leon@example.com | emails |
|
||||
| user@example.com | emails |
|
||||
Then get email autocomplete for "autocomplete@example.com"
|
||||
| id | source |
|
||||
| autocomplete@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 |
|
||||
|
|
|
|||
Loading…
Reference in a new issue