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
11
tests/hurl/notes/folder_index_root.hurl
Normal file
11
tests/hurl/notes/folder_index_root.hurl
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
# /notes/ is the vault root listing; dot-directories are invisible.
|
||||
GET {{host}}/notes/
|
||||
HTTP 200
|
||||
[Asserts]
|
||||
jsonpath "$.path" == ""
|
||||
jsonpath "$.entries[*].name" not contains ".obsidian"
|
||||
jsonpath "$.entries[*].name" not contains ".trash"
|
||||
jsonpath "$.entries[*].name" contains "Projects"
|
||||
jsonpath "$.entries[*].name" contains "Projects-old"
|
||||
jsonpath "$.entries[*].name" contains "events"
|
||||
jsonpath "$.entries[*].name" contains "README.md"
|
||||
Loading…
Add table
Add a link
Reference in a new issue