-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathtransformation.http
More file actions
73 lines (61 loc) · 1.32 KB
/
transformation.http
File metadata and controls
73 lines (61 loc) · 1.32 KB
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
62
63
64
65
66
67
68
69
70
71
72
73
@baseURL = http://localhost:9000/api/pipelines
#@baseURL = http://localhost:8080
### Get version
GET {{baseURL}}/version HTTP/1.1
### Perform job
POST {{baseURL}}/job HTTP/1.1
Content-Type: application/json
{
"data": {
"a": 1,
"b": "example text",
"c": 3
},
"func": "data.c *= 2;\nreturn data;"
}
### Perform long job
POST {{baseURL}}/job HTTP/1.1
Content-Type: application/json
{
"data": {
"runs": 5e6
},
"func": "while(data.runs){const date = Date.now();data.runs--;};return data;"
}
### Perform memory-hungry job
POST {{baseURL}}/job HTTP/1.1
Content-Type: application/json
{
"data": {
"n": 1e7,
"content": "some string"
},
"func": "let arr = Array(data.n).fill(data.content);arr.reverse();return arr.length;"
}
### Perform syntax error job
POST {{baseURL}}/job HTTP/1.1
Content-Type: application/json
{
"data": {
"a": 1
},
"func": "const x = 2;\nlet array = [];"
}
### Perform runtime error job
POST {{baseURL}}/job HTTP/1.1
Content-Type: application/json
{
"data": {
"a": 1
},
"func": "data.b.c += 2;return data;"
}
### Perform long stacktrace error job
POST {{baseURL}}/job HTTP/1.1
Content-Type: application/json
{
"data": {
"a": 1
},
"func": "function accessMember(object) {\nreturn object.splice(a);\n}\n data.a = accessMember(data.a);\nreturn data;"
}