You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently working on FlowG's backup feature (sorry for self-promotion). The End-To-End test suite of the API is written with Hurl (loves it by the way, thanks for the great work).
I'm trying to implement the backup&restore test. The idea is to send the API request for backup-ing, capturing the response body (which is the actual backup bundled in a binary file) as bytes, and then reuse the captured bytes as part of the "restore" API request.
I'm unsure if I'm misreading the docs, or if they are lacking, or if the feature simply does not exist.
Test case
I tried the following:
GET http://localhost:5080/api/v1/backup/logs
Authorization: Bearer pat:{{admin_token}}
HTTP 200
[Captures]
logs_backup: bytes
POST http://localhost:5080/api/v1/restore/logs
Authorization: Bearer pat:{{admin_token}}
[Multipart]
backup: {{logs_backup}}
HTTP 200
error: Unrenderable expression
--> spec/backup.hurl:22:11
|
| POST http://localhost:5080/api/v1/restore/logs
| ...
22 | backup: {{logs_backup}}
| ^^^^^^^^^^^ expression with value hex, <big hex value omitted>; can not be rendered
Execution context
Hurl Version (hurl --version):
hurl 6.0.0 (unknown) libcurl/8.12.1-DEV OpenSSL/3.0.13 zlib/1.3
Features (libcurl): alt-svc AsynchDNS HSTS IPv6 libz SSL UnixSockets
Features (built-in): brotli
The text was updated successfully, but these errors were encountered:
Context
I am currently working on FlowG's backup feature (sorry for self-promotion). The End-To-End test suite of the API is written with Hurl (loves it by the way, thanks for the great work).
I'm trying to implement the backup&restore test. The idea is to send the API request for backup-ing, capturing the response body (which is the actual backup bundled in a binary file) as
bytes
, and then reuse the captured bytes as part of the "restore" API request.I'm unsure if I'm misreading the docs, or if they are lacking, or if the feature simply does not exist.
Test case
I tried the following:
And:
But in both cases, I get the following error:
Execution context
hurl --version
):The text was updated successfully, but these errors were encountered: