generated from superdesk/newsroom-app
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implement case insensitive user search
CPCN-532
- Loading branch information
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -206,3 +206,22 @@ Feature: Management API - Users | |
} | ||
""" | ||
Then we get response code 201 | ||
|
||
Scenario: Search case insensitive | ||
Given "users" | ||
""" | ||
[ | ||
{ | ||
"first_name": "John", | ||
"last_name": "Cena", | ||
"email": "[email protected]", | ||
"user_type": "administrator" | ||
} | ||
] | ||
""" | ||
|
||
When we get "/users?where={"email": "johncena@wwe.com"}" | ||
Then we get list with 1 items | ||
|
||
When we get "/users?where={"email": "JohnCena@wwe.com"}" | ||
Then we get list with 1 items |