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
14
tests/hurl/health/health_shape.hurl
Normal file
14
tests/hurl/health/health_shape.hurl
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
# GET /health returns 200, JSON, and the shape promised by the User Manual.
|
||||
GET {{host}}/health
|
||||
HTTP 200
|
||||
[Asserts]
|
||||
header "Content-Type" startsWith "application/json"
|
||||
jsonpath "$.note_count" exists
|
||||
jsonpath "$.note_count" >= 14
|
||||
jsonpath "$.watcher_state" matches "^(running|degraded)$"
|
||||
jsonpath "$.in_flight_rescan" isBoolean
|
||||
jsonpath "$.vault_path" exists
|
||||
jsonpath "$.supervisor.restarts.vault_scanner" exists
|
||||
jsonpath "$.supervisor.restarts.filesystem_watcher" exists
|
||||
jsonpath "$.supervisor.restarts.index_writer" exists
|
||||
jsonpath "$.supervisor.restarts.http_server" exists
|
||||
Loading…
Add table
Add a link
Reference in a new issue