Skip to content

Commit

Permalink
Updated legacy files in the config-wasm test dir
Browse files Browse the repository at this point in the history
  • Loading branch information
tkmcmaster committed Aug 2, 2024
1 parent ce329b4 commit b8cc6b4
Show file tree
Hide file tree
Showing 28 changed files with 49 additions and 37 deletions.
2 changes: 1 addition & 1 deletion lib/config-wasm/tests/legacy_examples/body_file.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ load_pattern:

loggers:
test:
to: stderr
to: stdout

endpoints:
- method: POST
Expand Down
6 changes: 3 additions & 3 deletions lib/config-wasm/tests/legacy_examples/body_formdata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,21 @@ load_pattern:

loggers:
test:
to: stderr
to: stdout

endpoints:
- method: POST
url: http://localhost:${port}
headers:
Accept-Language: en-us
Content-Type: application/x-www-form-urlencoded
body: username=${username}&password=${password}&grant_type=password&client_id=${dev_key}
body: username=${username}&password=${password}&grant_type=password&client_id=${dev_key}&token=abcd-1234-efgh
peak_load: 1hps
logs:
test:
select:
ts: epoch("ms")
response: request.body
token: response.body.token
token: match(response.body, "token=(?P<token>[a-zA-Z0-9-]+)").token
on_demand: true

2 changes: 1 addition & 1 deletion lib/config-wasm/tests/legacy_examples/body_json.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ load_pattern:

loggers:
test:
to: stderr
to: stdout

endpoints:
- method: POST
Expand Down
2 changes: 1 addition & 1 deletion lib/config-wasm/tests/legacy_examples/body_multipart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ load_pattern:

loggers:
test:
to: stderr
to: stdout

endpoints:
- method: POST
Expand Down
2 changes: 1 addition & 1 deletion lib/config-wasm/tests/legacy_examples/delete_search.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ providers:

loggers:
test:
to: stderr
to: stdout
test_404s:
limit: 1
to: stdout
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ providers:

loggers:
test:
to: stderr
to: stdout
test_404s:
limit: 1
to: stdout
Expand Down
2 changes: 1 addition & 1 deletion lib/config-wasm/tests/legacy_examples/int_on_demand.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ load_pattern:

loggers:
test:
to: stderr
to: stdout

vars:
port: "${PORT}"
Expand Down
2 changes: 1 addition & 1 deletion lib/config-wasm/tests/legacy_examples/log_all.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ loggers:
pretty: false

test:
to: stderr
to: stdout

endpoints:
- method: POST
Expand Down
2 changes: 1 addition & 1 deletion lib/config-wasm/tests/legacy_examples/log_csv.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ loggers:
pretty: false

test:
to: stderr
to: stdout

endpoints:
- method: POST
Expand Down
2 changes: 1 addition & 1 deletion lib/config-wasm/tests/legacy_examples/log_errors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ loggers:
pretty: false

test:
to: stderr
to: stdout

endpoints:
- method: GET
Expand Down
10 changes: 7 additions & 3 deletions lib/config-wasm/tests/legacy_examples/login_for_apis_block.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ providers:

loggers:
test:
to: stderr
to: stdout

endpoints:
- method: POST
Expand Down Expand Up @@ -67,7 +67,9 @@ endpoints:
logs:
test:
select:
a: response.body.a
a: a
b: response.body.b
session: session

- method: POST
url: http://localhost:${port}?c
Expand All @@ -78,4 +80,6 @@ endpoints:
logs:
test:
select:
a: response.body.a
a: a
c: response.body.c
session: session
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ providers:

loggers:
test:
to: stderr
to: stdout

endpoints:
- method: POST
Expand Down Expand Up @@ -67,7 +67,9 @@ endpoints:
logs:
test:
select:
a: response.body.a
a: a
b: response.body.b
session: session

- method: POST
url: http://localhost:${port}?c
Expand All @@ -78,4 +80,6 @@ endpoints:
logs:
test:
select:
a: response.body.a
a: a
c: response.body.c
session: session
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ providers:

loggers:
test:
to: stderr
to: stdout

endpoints:
- method: POST
Expand Down Expand Up @@ -65,7 +65,9 @@ endpoints:
logs:
test:
select:
a: response.body.a
a: a
b: response.body.b
session: session

- method: POST
url: http://localhost:${port}?c
Expand All @@ -76,4 +78,6 @@ endpoints:
logs:
test:
select:
a: response.body.a
a: a
c: response.body.c
session: session
2 changes: 1 addition & 1 deletion lib/config-wasm/tests/legacy_examples/provider_chain.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ providers:

loggers:
test:
to: stderr
to: stdout

endpoints:
- method: POST
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ providers:

loggers:
test:
to: stderr
to: stdout

endpoints:
- method: POST
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ providers:

loggers:
test:
to: stderr
to: stdout

endpoints:
- method: POST
Expand Down
2 changes: 1 addition & 1 deletion lib/config-wasm/tests/legacy_examples/provider_grid.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ providers:

loggers:
test:
to: stderr
to: stdout

endpoints:
- method: POST
Expand Down
2 changes: 1 addition & 1 deletion lib/config-wasm/tests/legacy_examples/provider_loop.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ providers:

loggers:
test:
to: stderr
to: stdout

endpoints:
- method: POST
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ providers:

loggers:
test:
to: stderr
to: stdout

endpoints:
- method: POST
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ providers:

loggers:
test:
to: stderr
to: stdout

endpoints:
- method: GET
Expand Down
2 changes: 1 addition & 1 deletion lib/config-wasm/tests/legacy_examples/provider_spread.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ providers:

loggers:
test:
to: stderr
to: stdout

endpoints:
- method: POST
Expand Down
2 changes: 1 addition & 1 deletion lib/config-wasm/tests/legacy_examples/ramp_and_load.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ load_pattern:

loggers:
test:
to: stderr
to: stdout

endpoints:
- method: GET
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ load_pattern:

loggers:
test:
to: stderr
to: stdout

endpoints:
- method: GET
Expand Down
2 changes: 1 addition & 1 deletion lib/config-wasm/tests/legacy_examples/ramp_basic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ load_pattern:

loggers:
test:
to: stderr
to: stdout

endpoints:
- method: GET
Expand Down
2 changes: 1 addition & 1 deletion lib/config-wasm/tests/legacy_examples/ramp_over_time.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ load_pattern:

loggers:
test:
to: stderr
to: stdout

endpoints:
- method: GET
Expand Down
2 changes: 1 addition & 1 deletion lib/config-wasm/tests/legacy_examples/ramp_to_scale.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ load_pattern:

loggers:
test:
to: stderr
to: stdout

endpoints:
- method: GET
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ load_pattern:

loggers:
test:
to: stderr
to: stdout

endpoints:
- method: GET
Expand Down
4 changes: 2 additions & 2 deletions lib/config-wasm/tests/legacy_examples/random_search.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ providers:

loggers:
test:
to: stderr
to: stdout
http_errors:
select:
timestamp: epoch("ms")
Expand All @@ -120,7 +120,7 @@ loggers:
responseBody: response.body
where: response.status >= 400
limit: 1000
to: stderr
to: stdout
pretty: false
search_logger:
to: 'search-results-${epoch("ms")}.json' # log to a file with a timestamp. timestamp set at test start
Expand Down

0 comments on commit b8cc6b4

Please sign in to comment.