Files
music_library/test/prod.hurl
T
Claudio Ortolina fc0120e5fc Revert "Template host in verification tests"
This reverts commit d65a2223db.
2024-12-25 19:57:27 +00:00

27 lines
550 B
Plaintext

# API requires a valid token
# GET latest record
GET https://music-library.claudio-ortolina.org/api/collection/latest
Content-Type: application/json
HTTP 401
GET https://music-library.claudio-ortolina.org/api/collection/latest
Content-Type: application/json
Authorization: Bearer {{api_token}}
HTTP 200
[Asserts]
# Record data is returned - one property is enough
jsonpath "$.title" != null
[Captures]
cover-url: jsonpath "$.cover_url"
# GET cover image
GET {{cover-url}}
HTTP 401
GET {{cover-url}}
Authorization: Bearer {{api_token}}
HTTP 200