2
2
3
3
vars :
4
4
port : " ${PORT}"
5
- createName : ' test:loadtest-'
6
5
groupRate : 1
7
6
imagesPerGroup : 10
8
7
@@ -13,23 +12,19 @@ load_pattern:
13
12
over : 5s
14
13
15
14
providers :
16
- group_range : # Counter for creating groups
15
+ a : # Counter for creating groups
17
16
range : {}
18
- image_range : # counter for creating images to put in groups
17
+ x : # counter for creating images to put in groups
19
18
range : {}
20
- group_created : # to continue the group APIs
19
+ b : # to continue the group APIs
21
20
response : {}
22
- group_created_for_images : # to create images
21
+ b2 : # to create images
23
22
response : {}
24
- image_created : # to continue the image APIs
23
+ y : # to continue the image APIs
25
24
response : {}
26
- group_create_data :
25
+ c :
27
26
response : {}
28
- image_create_data :
29
- response : {}
30
- group_update_data :
31
- response : {}
32
- image_update_data :
27
+ z :
33
28
response : {}
34
29
35
30
loggers :
@@ -42,15 +37,14 @@ endpoints:
42
37
tags :
43
38
type : create group
44
39
body : ' {
45
- "id":"${createName}${start_pad(group_range, 6, "0")}",
46
- "name":"TEST-GROUP"
40
+ "a":"${start_pad(a, 6, "0")}"
47
41
}'
48
42
provides :
49
- group_created :
50
- select : response.body.id
43
+ b :
44
+ select : response.body.a
51
45
where : response.status == 200 || response.status == 409
52
- group_created_for_images :
53
- select : response.body.id
46
+ b2 :
47
+ select : response.body.a
54
48
for_each :
55
49
- repeat(imagesPerGroup) # We need to create X copies so each image will have one
56
50
where : response.status == 200 || response.status == 409
@@ -61,15 +55,14 @@ endpoints:
61
55
tags :
62
56
type : create image
63
57
body : ' {
64
- "id":"${createName}${start_pad(image_range, 8, "0")}",
65
- "groupId":"${group_created_for_images}",
66
- "name":"TEST-IMAGE"
58
+ "x":"${start_pad(x, 8, "0")}",
59
+ "b":"${b2}"
67
60
}'
68
61
provides :
69
- image_created :
62
+ y :
70
63
select :
71
- id : response.body.id
72
- groupId : response.body.groupId
64
+ x : response.body.x
65
+ b : response.body.b
73
66
where : response.status == 200 || response.status == 409
74
67
peak_load : ${groupRate * imagesPerGroup}hps # Needs to be a higher rate to keep up with groups
75
68
@@ -78,14 +71,14 @@ endpoints:
78
71
tags :
79
72
type : create group data
80
73
body : ' {
81
- "id ":"${group_created }",
74
+ "b ":"${b }",
82
75
"data":{
83
- "subdata":"TEST -DATA"
76
+ "subdata":"A -DATA"
84
77
}
85
78
}'
86
79
provides :
87
- group_create_data :
88
- select : group_created
80
+ c :
81
+ select : response.body.b
89
82
where : response.status == 200
90
83
peak_load : ${groupRate}hps
91
84
@@ -94,41 +87,41 @@ endpoints:
94
87
tags :
95
88
type : create image
96
89
body : ' {
97
- "id ":"${image_created.id }",
98
- "groupId ":"${image_created.groupId }",
90
+ "x ":"${y.x }",
91
+ "b ":"${y.b }",
99
92
"data":{
100
- "subdata":"TEST -DATA"
93
+ "subdata":"X -DATA"
101
94
}
102
95
}'
103
96
provides :
104
- image_create_data :
105
- select : image_created # Puts in the whole object (id and groupId)
97
+ z :
98
+ select : y # Puts in the whole object (id and groupId)
106
99
where : response.status == 200
107
100
peak_load : ${groupRate * imagesPerGroup}hps # Needs to be a higher rate to keep up with groups
108
101
109
102
- method : PUT
110
103
url : http://localhost:${port}
111
104
body : ' {
112
- "id ":"${group_create_data }",
105
+ "c ":"${c }",
113
106
"data":{
114
- "subdata":"UPDATED-TEST -DATA"
107
+ "subdata":"UPDATED-A -DATA"
115
108
}
116
109
}'
117
110
peak_load : ${groupRate}hps
118
111
logs :
119
112
test :
120
- select : response.body.id
113
+ select : response.body.c
121
114
122
115
- method : PUT
123
116
url : http://localhost:${port}
124
117
body : ' {
125
- "id ":"${image_create_data.id }",
126
- "groupId ":"${image_create_data.groupId }",
118
+ "x ":"${z.x }",
119
+ "b ":"${z.b }",
127
120
"data":{
128
- "subdata":"UPDATED-TEST -DATA"
121
+ "subdata":"UPDATED-X -DATA"
129
122
}
130
123
}'
131
124
peak_load : ${groupRate * imagesPerGroup}hps # Needs to be a higher rate to keep up with groups
132
125
logs :
133
126
test :
134
- select : response.body.id
127
+ select : response.body.x
0 commit comments