summaryrefslogtreecommitdiff
path: root/yarns
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2017-09-22 17:28:31 +0000
committerLars Wirzenius <liw@liw.fi>2017-09-25 14:46:11 +0000
commitb71317b7353c104aaeb7bed482cf480c1112b8bc (patch)
treec6763fd73439947841afa37ca133db2a7677c963 /yarns
parent52a39e3af9660daffc4759e258e8f8d75060f8c0 (diff)
downloadqvisqve-b71317b7353c104aaeb7bed482cf480c1112b8bc.tar.gz
Add: tests for search being case-insensitive
Diffstat (limited to 'yarns')
-rw-r--r--yarns/smoke.yarn6
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}"}