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
10
tests/hurl/query/anw_recursive_false.hurl
Normal file
10
tests/hurl/query/anw_recursive_false.hurl
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
# __anw-recursive=false restricts to direct children of __anw-path.
|
||||
GET {{host}}/query?__anw-path=Projects&__anw-recursive=false
|
||||
HTTP 200
|
||||
[Asserts]
|
||||
# Four notes live directly under Projects/; none under deeper folders here.
|
||||
jsonpath "$.total" == 4
|
||||
jsonpath "$.results[*].path" contains "Projects/anwesen.md"
|
||||
jsonpath "$.results[*].path" contains "Projects/alpha.md"
|
||||
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