-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
template preprocessor + multi request variables indexing bug fix (#4262)
* add randstr preprocessor to defaults * fix indexing in http + preprocessor integration test * add multi-request integration test * skip test if asnmap is down
- Loading branch information
1 parent
a4c6846
commit e9ab5f4
Showing
7 changed files
with
108 additions
and
3 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
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,17 @@ | ||
id: http-preprocessor | ||
|
||
info: | ||
name: Test Http Preprocessor | ||
author: pdteam | ||
severity: info | ||
|
||
requests: | ||
- raw: | ||
- | | ||
GET /?test={{randstr}} HTTP/1.1 | ||
Host: {{Hostname}} | ||
matchers: | ||
- type: status | ||
status: | ||
- 200 |
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,26 @@ | ||
id: http-multi-request | ||
|
||
info: | ||
name: http multi request template | ||
author: pdteam | ||
severity: info | ||
description: template with multiple http request with combined logic | ||
reference: https://example-reference-link | ||
|
||
# requestURI is reflected back as response body here | ||
http: | ||
- raw: | ||
- | | ||
GET /ping HTTP/1.1 | ||
Host: {{Hostname}} | ||
- | | ||
GET /pong HTTP/1.1 | ||
Host: {{Hostname}} | ||
matchers: | ||
- type: dsl | ||
dsl: | ||
- 'body_1 == "ping"' | ||
- 'body_2 == "pong"' | ||
condition: and |
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
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