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
13
tests/hurl/notes/folder_index.hurl
Normal file
13
tests/hurl/notes/folder_index.hurl
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
# Trailing slash is a folder listing -- immediate children only.
|
||||
GET {{host}}/notes/Projects/
|
||||
HTTP 200
|
||||
[Asserts]
|
||||
header "Content-Type" startsWith "application/json"
|
||||
jsonpath "$.path" == "Projects"
|
||||
jsonpath "$.entries" count == 4
|
||||
jsonpath "$.entries[0].name" == "PDR-001-intro.md"
|
||||
jsonpath "$.entries[0].type" == "file"
|
||||
jsonpath "$.entries[0].size" > 0
|
||||
jsonpath "$.entries[1].name" == "PDR-002-followup.md"
|
||||
jsonpath "$.entries[2].name" == "alpha.md"
|
||||
jsonpath "$.entries[3].name" == "anwesen.md"
|
||||
Loading…
Add table
Add a link
Reference in a new issue