File tree 2 files changed +60
-3
lines changed
2 files changed +60
-3
lines changed Original file line number Diff line number Diff line change
1
+ # Run this file with the test-server, then specify the PORT as a parameter to this try or run script.
2
+
3
+ vars :
4
+ port : " ${PORT}"
5
+
6
+ load_pattern :
7
+ - linear :
8
+ from : 100%
9
+ to : 100%
10
+ over : 5s
11
+
12
+ providers :
13
+ a :
14
+ range : {}
15
+ b :
16
+ response : {}
17
+ c :
18
+ response : {}
19
+ d :
20
+ response : {}
21
+ e :
22
+ response : {}
23
+ f :
24
+ response : {}
25
+
26
+ loggers :
27
+ test :
28
+ to : stderr
29
+
30
+ endpoints :
31
+ - method : POST
32
+ url : http://localhost:${port}
33
+ body : ' {"a": ${a}}'
34
+ provides :
35
+ b :
36
+ select : response.body.a
37
+ on_demand : true
38
+
39
+ - method : POST
40
+ declare :
41
+ c : collect(b, 10) # Get 10
42
+ url : http://localhost:${port}
43
+ body : ' {"c": ${c}}'
44
+ provides :
45
+ d :
46
+ # select: response.body.c
47
+ select : for_each[0]
48
+ for_each :
49
+ - response.body.c
50
+ on_demand : true
51
+
52
+ - method : POST
53
+ url : http://localhost:${port}
54
+ body : ' {"d": ${d}}'
55
+ peak_load : 1hps
56
+ logs :
57
+ test :
58
+ select : response.body.d
Original file line number Diff line number Diff line change @@ -17,8 +17,6 @@ providers:
17
17
response : {}
18
18
c :
19
19
response : {}
20
- d :
21
- response : {}
22
20
23
21
loggers :
24
22
test :
@@ -43,8 +41,9 @@ endpoints:
43
41
44
42
- method : POST
45
43
url : http://localhost:${port}
46
- body : ' {"b": ${b.value}}'
44
+ body : ' {"b": ${b.value},"counter": ${b.counter} }'
47
45
peak_load : 5hps
46
+ # on_demand: true # We can't do on_demand due to a bug where it can't figure out that we provider for ourselves
48
47
provides :
49
48
b :
50
49
select :
You can’t perform that action at this time.
0 commit comments