-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
aws signer: fix missing x-content-sha256 header (#3601)
* fix missing x-content-sha256 header * fix variable priority in self-contained templates * remove debug statement * adds generic raw request parser for self-contained req * more integration tests * bug fix: 10x faster race requests * fix failing integration test
- Loading branch information
1 parent
7ac9f05
commit 7f5e4e2
Showing
9 changed files
with
220 additions
and
54 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,20 @@ | ||
id: raw-unsafe-with-params | ||
|
||
info: | ||
name: Test RAW unsafe with params | ||
author: pdteam | ||
severity: info | ||
# this test is used to check automerge of params in both unsafe & safe requests | ||
# key1=value1 is added from inputURL | ||
|
||
requests: | ||
- raw: | ||
- |+ | ||
GET /?key2=value2 HTTP/1.1 | ||
Host: {{Hostname}} | ||
unsafe: true | ||
matchers: | ||
- type: word | ||
words: | ||
- "Test is test raw-params-matcher text" |
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,20 @@ | ||
id: raw-with-params | ||
|
||
info: | ||
name: Test RAW Params Template | ||
author: pdteam | ||
severity: info | ||
# this test is used to check automerge of params in both unsafe & safe requests | ||
# key1=value1 is added from inputURL | ||
|
||
requests: | ||
- raw: | ||
- | | ||
GET /?key2=value2 HTTP/1.1 | ||
Host: {{Hostname}} | ||
Origin: {{BaseURL}} | ||
matchers: | ||
- type: word | ||
words: | ||
- "Test is test raw-params-matcher text" |
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,18 @@ | ||
id: self-contained-with-path | ||
|
||
info: | ||
name: self-contained-with-path | ||
author: pd-team | ||
severity: info | ||
|
||
self-contained: true | ||
requests: | ||
- raw: | ||
- | | ||
GET / HTTP/1.1 | ||
Host: 127.0.0.1:5431 | ||
matchers: | ||
- type: word | ||
words: | ||
- This is self-contained response |
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,24 @@ | ||
package variables | ||
|
||
// There are total 5 sources of variables | ||
// 1. VariablesMap - Variables defined in the template (available at Request.options.Variables in protocols) | ||
// 2. PayloadsMap - Payloads defined in the template (available at Request.generator in protocols) | ||
// 3. OptionsMap - Variables passed using CLI Options (+ Env) (available at generators.BuildPayloadFromOptions) | ||
// 4. DynamicMap - Variables Obtained by extracting data from templates (available at Request.ExecuteWithResults + merged with previous internalEvent) | ||
// 5. ProtocolMap - Variables generated by Evaluation Request / Responses of xyz protocol (available in Request.Make) | ||
|
||
// As we can tell , all variables sources are not linear i.e why they need to re-evaluated | ||
// consider example | ||
// variables: | ||
// - name: "username@{{Host}}" | ||
|
||
// Linear Sources (once obtained no need to re-evaluate) | ||
// simply put they don't contain references to other variables | ||
// 1. OptionsMap | ||
// 2. DynamicMap | ||
// 3. ProtocolMap | ||
|
||
// Non-Linear Sources (need to re-evaluate) | ||
// 1. VariablesMap | ||
// 2. PayloadsMap | ||
// Everytime Linear Sources are updated , Non-Linear Sources need to be re-evaluated |
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.