ANW-20 hurl HTTP contract-test harness
This commit is contained in:
parent
ec650e6c66
commit
b4a33abd71
50 changed files with 415 additions and 2 deletions
7
tests/hurl/query/regex.hurl
Normal file
7
tests/hurl/query/regex.hurl
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
# __regex: anchored pattern on a scalar.
|
||||
GET {{host}}/query?title__regex=^PDR-%5Cd%2B
|
||||
HTTP 200
|
||||
[Asserts]
|
||||
jsonpath "$.total" == 2
|
||||
jsonpath "$.results[*].path" contains "Projects/PDR-001-intro.md"
|
||||
jsonpath "$.results[*].path" contains "Projects/PDR-002-followup.md"
|
||||
Loading…
Add table
Add a link
Reference in a new issue