Implement get task.
This commit is contained in:
parent
2b2fc974a2
commit
10efd3de8f
4 changed files with 64 additions and 12 deletions
|
|
@ -65,8 +65,6 @@ HTTP 200
|
|||
jsonpath "$.id" == "{{task_id}}"
|
||||
jsonpath "$.title" == "Test task"
|
||||
jsonpath "$.description" == "A test task for the API"
|
||||
jsonpath "$.priority" == "medium"
|
||||
jsonpath "$.due_date" == "2024-12-31"
|
||||
jsonpath "$.status" == "todo"
|
||||
jsonpath "$.created_at" exists
|
||||
jsonpath "$.updated_at" exists
|
||||
|
|
@ -78,10 +76,8 @@ HTTP 200
|
|||
[Asserts]
|
||||
jsonpath "$.id" == "{{minimal_task_id}}"
|
||||
jsonpath "$.title" == "Minimal task"
|
||||
jsonpath "$.priority" == "medium"
|
||||
jsonpath "$.status" == "todo"
|
||||
jsonpath "$.description" == null
|
||||
jsonpath "$.due_date" == null
|
||||
|
||||
# Test: Get non-existent task
|
||||
GET {{host}}/api/tasks/00000000-0000-0000-0000-000000000000
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue