diff options
author | Lars Wirzenius <liw@liw.fi> | 2017-09-22 17:28:31 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2017-09-25 14:46:11 +0000 |
commit | b71317b7353c104aaeb7bed482cf480c1112b8bc (patch) | |
tree | c6763fd73439947841afa37ca133db2a7677c963 /yarns | |
parent | 52a39e3af9660daffc4759e258e8f8d75060f8c0 (diff) | |
download | qvisqve-b71317b7353c104aaeb7bed482cf480c1112b8bc.tar.gz |
Add: tests for search being case-insensitive
Diffstat (limited to 'yarns')
-rw-r--r-- | yarns/smoke.yarn | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/yarns/smoke.yarn b/yarns/smoke.yarn index d689450..23d4ae8 100644 --- a/yarns/smoke.yarn +++ b/yarns/smoke.yarn @@ -178,14 +178,16 @@ don't need to be created specially. THEN HTTP status code is 200 OK AND JSON body matches { "resources": []} - WHEN client requests GET /subjects/search/exact/full_name/Alfred +Make sure searches are case-insensitive. + + WHEN client requests GET /subjects/search/exact/full_name/ALFRED ... using token THEN HTTP status code is 200 OK AND search result contains {"id": "${ID1}"} AND search result contains {"id": "${ID2}"} AND search result does NOT contain {"id": "${ID3}"} - WHEN client requests GET /subjects/search/exact/full_name/Bruce + WHEN client requests GET /subjects/search/exact/full_name/bruce ... using token THEN HTTP status code is 200 OK AND search result does NOT contain {"id": "${ID1}"} |