Implement get tasks.

This commit is contained in:
Drew 2025-09-20 12:18:56 -07:00
parent 4969feea9a
commit 8936222367
2 changed files with 17 additions and 7 deletions

View file

@ -5,7 +5,7 @@ GET {{host}}/api/tasks
HTTP 200
[Captures]
initial_count: jsonpath "$ length"
initial_count: jsonpath "$" count
[Asserts]
jsonpath "$" isCollection
@ -51,7 +51,7 @@ GET {{host}}/api/tasks
HTTP 200
[Asserts]
jsonpath "$" isCollection
jsonpath "$ length" >= {{initial_count}}
jsonpath "$" count >= {{initial_count}}
jsonpath "$[*].id" includes "{{alpha_task_id}}"
jsonpath "$[*].id" includes "{{beta_task_id}}"
jsonpath "$[*].id" includes "{{gamma_task_id}}"
@ -140,4 +140,4 @@ GET {{host}}/api/tasks
HTTP 200
[Asserts]
jsonpath "$[*].id" not includes "{{beta_task_id}}"
jsonpath "$[*].id" not includes "{{gamma_task_id}}"
jsonpath "$[*].id" not includes "{{gamma_task_id}}"