-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
test-queries.http
61 lines (43 loc) · 1.55 KB
/
test-queries.http
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
### Send POST report
POST http://localhost:8090/report/node/20200818154200/result
content-type: application/json
{
"test": [
{
"value": 1.0,
"labels": {
"label_a": "AAA",
"label_b": "BBB"
}
}
]
}
### Send POST file with context disposition header -> filename will be : node-test-queries.http
POST http://localhost:8090/report/node/20200818154200/file
Content-Disposition: attachment;filename="test-queries.http"
< ./test-queries.http
### Send POST file with name query parameter -> filename will be : node-test-queries.http
POST http://localhost:8090/report/node/20200818154200/file?name=test-queries.http
< ./test-queries.http
### Send POST file without name definition -> filename will be : node-XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
POST http://localhost:8090/report/node/20200818154200/file
< ./test-queries.http
### Send POST eventcrc-fd5nx-master-0-example-job-controller-job-crc-fd5nx-master-0-20200823184100
POST http://localhost:8090/report/crcd-fd5nx-master-0/20200823184100/event
content-type: application/json
{
"warning": false,
"reason": "TestReason",
"message": "test message"
}
### Send POST file as multipart form
POST http://localhost:8090/report/node/20200818154200/file
Content-Type: multipart/form-data; boundary=abcd
--test-queries1.http
Content-Disposition: form-data; name="file"; filename="test-queries1.http"
< ./test-queries.http
--test-querie1s.http--
--test-queries2.http
Content-Disposition: form-data; name="file"; filename="test-queries2.http"
< ./test-queries.http
--test-queries2.http--