-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into tryHangScripting
- Loading branch information
Showing
8 changed files
with
238 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# Run this file with the test-server, then specify the PORT as a parameter to this try or run script. | ||
|
||
vars: | ||
port: ${e:PORT} | ||
load_pattern: | ||
- !linear | ||
from: 100% | ||
to: 100% | ||
over: 5s | ||
|
||
providers: | ||
a: !range | ||
b: !response | ||
buffer: 10 | ||
c: !response | ||
d: !response | ||
e: !response | ||
f: !response | ||
|
||
loggers: | ||
test: | ||
to: stderr | ||
|
||
endpoints: | ||
- method: POST | ||
url: http://localhost:${v:port} | ||
body: !str '{"a": ${p:a}}' | ||
provides: | ||
b: | ||
query: | ||
select: response.body.a | ||
send: block | ||
# on_demand: true | ||
|
||
- method: POST | ||
declare: | ||
c: !c | ||
collects: | ||
- take: 10 | ||
from: ${p:b} | ||
as: _c | ||
then: ${p:_c} | ||
url: http://localhost:${v:port} | ||
body: !str '{"c": ${p:c}}' | ||
# peak_load: 1hps | ||
provides: | ||
d: | ||
query: | ||
# select: response.body.c | ||
select: for_each[0] | ||
for_each: | ||
- response.body.c | ||
send: block | ||
on_demand: true | ||
|
||
- method: POST | ||
url: http://localhost:${v:port} | ||
body: !str '{"d": ${p:d}}' | ||
peak_load: 1hps | ||
logs: | ||
test: | ||
select: response.body.d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.