forked from Inist-CNRS/web-services
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtests.hurl
More file actions
34 lines (30 loc) · 697 Bytes
/
tests.hurl
File metadata and controls
34 lines (30 loc) · 697 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# WARNING: This file was not generated, but manually written.
# DON'T OVERWRITE IT
# Use it to test:
# npx hurl --test data-computer/tests.hurl
##################################################################
# v1/sudoc
POST {{host}}/v1/sudoc
content-type: application/x-tar
x-hook: https://webhook.site/69300b22-a251-4c16-9905-f7ba218ae7e9
file,example.tar.gz;
HTTP 200
# Capture the computing token
[Captures]
computing_token: jsonpath "$[0].value"
[Asserts]
variable "computing_token" exists
POST {{host}}/v1/retrieve-tests
content-type: application/json
[Options]
delay: 10000
```
[
{
"value":"{{computing_token}}"
}
]
```
HTTP 200
Content-Type: application/json
`[{"value":"True"}]`