-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathlog_all.yaml
40 lines (35 loc) · 1022 Bytes
/
log_all.yaml
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
# Run this file with the test-server, then specify the PORT as a parameter to this try or run script.
vars:
port: "${PORT}"
load_pattern:
- linear:
from: 10%
to: 100%
over: 15s
loggers:
http_errors:
select:
timestamp: epoch("ms")
request: request["start-line"]
requestHeaders: request.headers # headers_all includes duplicate headers, headers only has the first of each named header
requestBody: request.body
response: response["start-line"]
responseHeaders: response.headers
responseBody: response.body
stats: stats
to: 'log-results-${epoch("ms")}.json' # log to a file with a timestamp. timestamp set at test start
pretty: false
test:
to: stdout
endpoints:
- method: POST
url: http://localhost:${port}
headers:
Accept-Language: en-us
Content-Type: application/json
Authorization: Bearer test-token
body: '{"test":true}'
peak_load: 1hps
logs:
test:
select: response.status