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
+19 -19
View File
@@ -30,13 +30,13 @@ jsonpath "$.access_token" isString
# ───────────────────────────────────────────────────────────── # ─────────────────────────────────────────────────────────────
# Step 2 – No favorites yet # Step 2 – No favorites yet
# ───────────────────────────────────────────────────────────── # ─────────────────────────────────────────────────────────────
GET {{base_url}}/api/favorites GET {{base_url}}/api/favorites/resources
Authorization: Bearer {{token}} Authorization: Bearer {{token}}
HTTP 200 HTTP 200
[Asserts] [Asserts]
jsonpath "$" isCollection jsonpath "$.items" isCollection
jsonpath "$" count == 0 jsonpath "$.items" count == 0
# ───────────────────────────────────────────────────────────── # ─────────────────────────────────────────────────────────────
@@ -85,15 +85,15 @@ HTTP 201
# ───────────────────────────────────────────────────────────── # ─────────────────────────────────────────────────────────────
# Step 5 – Favorites contains only hello-renamed.txt # Step 5 – Favorites contains only hello-renamed.txt
# ───────────────────────────────────────────────────────────── # ─────────────────────────────────────────────────────────────
GET {{base_url}}/api/favorites GET {{base_url}}/api/favorites/resources
Authorization: Bearer {{token}} Authorization: Bearer {{token}}
HTTP 200 HTTP 200
[Asserts] [Asserts]
jsonpath "$" count == 1 jsonpath "$.items" count == 1
jsonpath "$[0].item_id" == {{file_id}} jsonpath "$.items[0].resource.id" == {{file_id}}
jsonpath "$[0].item_type" == "file" jsonpath "$.items[0].resource_type" == "file"
jsonpath "$[0].item_name" == "hello-renamed.txt" jsonpath "$.items[0].resource.name" == "hello-renamed.txt"
# ───────────────────────────────────────────────────────────── # ─────────────────────────────────────────────────────────────
@@ -108,14 +108,14 @@ HTTP 201
# ───────────────────────────────────────────────────────────── # ─────────────────────────────────────────────────────────────
# Step 7 – Favorites contains both items (order-independent) # Step 7 – Favorites contains both items (order-independent)
# ───────────────────────────────────────────────────────────── # ─────────────────────────────────────────────────────────────
GET {{base_url}}/api/favorites GET {{base_url}}/api/favorites/resources
Authorization: Bearer {{token}} Authorization: Bearer {{token}}
HTTP 200 HTTP 200
[Asserts] [Asserts]
jsonpath "$" count == 2 jsonpath "$.items" count == 2
jsonpath "$[*].item_id" contains {{file_id}} jsonpath "$.items[*].resource.id" contains {{file_id}}
jsonpath "$[*].item_id" contains {{test1_id}} jsonpath "$.items[*].resource.id" contains {{test1_id}}
# ───────────────────────────────────────────────────────────── # ─────────────────────────────────────────────────────────────
@@ -130,15 +130,15 @@ HTTP 200
# ───────────────────────────────────────────────────────────── # ─────────────────────────────────────────────────────────────
# Step 9 – Favorites contains only test1 folder # Step 9 – Favorites contains only test1 folder
# ───────────────────────────────────────────────────────────── # ─────────────────────────────────────────────────────────────
GET {{base_url}}/api/favorites GET {{base_url}}/api/favorites/resources
Authorization: Bearer {{token}} Authorization: Bearer {{token}}
HTTP 200 HTTP 200
[Asserts] [Asserts]
jsonpath "$" count == 1 jsonpath "$.items" count == 1
jsonpath "$[0].item_id" == {{test1_id}} jsonpath "$.items[0].resource.id" == {{test1_id}}
jsonpath "$[0].item_type" == "folder" jsonpath "$.items[0].resource_type" == "folder"
jsonpath "$[0].item_name" == "test1" jsonpath "$.items[0].resource.name" == "test1"
# ───────────────────────────────────────────────────────────── # ─────────────────────────────────────────────────────────────
@@ -153,9 +153,9 @@ HTTP 200
# ───────────────────────────────────────────────────────────── # ─────────────────────────────────────────────────────────────
# Step 11 – Favorites is empty again # Step 11 – Favorites is empty again
# ───────────────────────────────────────────────────────────── # ─────────────────────────────────────────────────────────────
GET {{base_url}}/api/favorites GET {{base_url}}/api/favorites/resources
Authorization: Bearer {{token}} Authorization: Bearer {{token}}
HTTP 200 HTTP 200
[Asserts] [Asserts]
jsonpath "$" count == 0 jsonpath "$.items" count == 0
+2 -2
View File
@@ -391,7 +391,7 @@ Authorization: Bearer {{adam_token}}
HTTP 404 HTTP 404
GET {{base_url}}/api/folders/{{perm_folder_id}}/contents/paginated GET {{base_url}}/api/folders/{{perm_folder_id}}/resources
Authorization: Bearer {{adam_token}} Authorization: Bearer {{adam_token}}
HTTP 404 HTTP 404
@@ -514,7 +514,7 @@ HTTP 200
jsonpath "$" count == 1 jsonpath "$" count == 1
jsonpath "$[0].id" == "{{perm_child_id}}" jsonpath "$[0].id" == "{{perm_child_id}}"
GET {{base_url}}/api/folders/{{perm_folder_id}}/contents/paginated GET {{base_url}}/api/folders/{{perm_folder_id}}/resources
Authorization: Bearer {{adam_token}} Authorization: Bearer {{adam_token}}
HTTP 200 HTTP 200
+7 -7
View File
@@ -71,14 +71,14 @@ HTTP 200
# ───────────────────────────────────────────────────────────── # ─────────────────────────────────────────────────────────────
# Step 4 – Recent list contains hello-renamed.txt # Step 4 – Recent list contains hello-renamed.txt
# ───────────────────────────────────────────────────────────── # ─────────────────────────────────────────────────────────────
GET {{base_url}}/api/recent GET {{base_url}}/api/recent/resources
Authorization: Bearer {{token}} Authorization: Bearer {{token}}
HTTP 200 HTTP 200
[Asserts] [Asserts]
jsonpath "$" count == 1 jsonpath "$.items" count == 1
jsonpath "$[0].item_type" == "file" jsonpath "$.items[0].resource_type" == "file"
jsonpath "$[0].item_name" == "hello-renamed.txt" jsonpath "$.items[0].resource.name" == "hello-renamed.txt"
# ───────────────────────────────────────────────────────────── # ─────────────────────────────────────────────────────────────
@@ -93,10 +93,10 @@ HTTP 200
# ───────────────────────────────────────────────────────────── # ─────────────────────────────────────────────────────────────
# Step 6 – Recent list is empty after clear # Step 6 – Recent list is empty after clear
# ───────────────────────────────────────────────────────────── # ─────────────────────────────────────────────────────────────
GET {{base_url}}/api/recent GET {{base_url}}/api/recent/resources
Authorization: Bearer {{token}} Authorization: Bearer {{token}}
HTTP 200 HTTP 200
[Asserts] [Asserts]
jsonpath "$" isCollection jsonpath "$.items" isCollection
jsonpath "$" count == 0 jsonpath "$.items" count == 0