test(api): move deprecated call to new one

This commit is contained in:
Edouard Vanbelle
2026-05-29 12:55:26 +02:00
parent ae4fb7603a
commit 5a43b14e29
3 changed files with 28 additions and 28 deletions
+7 -7
View File
@@ -71,14 +71,14 @@ HTTP 200
# ─────────────────────────────────────────────────────────────
# Step 4 – Recent list contains hello-renamed.txt
# ─────────────────────────────────────────────────────────────
GET {{base_url}}/api/recent
GET {{base_url}}/api/recent/resources
Authorization: Bearer {{token}}
HTTP 200
[Asserts]
jsonpath "$" count == 1
jsonpath "$[0].item_type" == "file"
jsonpath "$[0].item_name" == "hello-renamed.txt"
jsonpath "$.items" count == 1
jsonpath "$.items[0].resource_type" == "file"
jsonpath "$.items[0].resource.name" == "hello-renamed.txt"
# ─────────────────────────────────────────────────────────────
@@ -93,10 +93,10 @@ HTTP 200
# ─────────────────────────────────────────────────────────────
# Step 6 – Recent list is empty after clear
# ─────────────────────────────────────────────────────────────
GET {{base_url}}/api/recent
GET {{base_url}}/api/recent/resources
Authorization: Bearer {{token}}
HTTP 200
[Asserts]
jsonpath "$" isCollection
jsonpath "$" count == 0
jsonpath "$.items" isCollection
jsonpath "$.items" count == 0