diff --git a/data-computer/tests.hurl b/data-computer/tests.hurl new file mode 100644 index 0000000..0f391a9 --- /dev/null +++ b/data-computer/tests.hurl @@ -0,0 +1,32 @@ +# WARNING: This file was not generated, but manually written. +# DON'T OVERWRITE IT + +POST https://data-computer.services.istex.fr/v1/tree-segment +content-type: application/x-tar +x-hook: https://webhook.site/69300b22-a251-4c16-9905-f7ba218ae7e9 +file,example-json.tar.gz; + +HTTP 200 +# Capture the computing token +[Captures] +computing_token: jsonpath "$[0].value" +[Asserts] +variable "computing_token" exists + +# There should be a waiting time, representing the time taken to process data. +# Fortunately, as the data is sparse, and the computing time is small, +# the need is small. + +POST https://data-computer.services.istex.fr/v1/retrieve +content-type: application/json +``` +[ + { + "value":"{{computing_token}}" + } +] +``` + +HTTP 200 +# Actual Content-Type is application/json, but it's wrong. +#Content-Type: application/x-tar