-
-
Notifications
You must be signed in to change notification settings - Fork 366
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from brefphp/basic-auth
#1325 Improve tests for basic auth and form data header
- Loading branch information
Showing
8 changed files
with
190 additions
and
20 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
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
42 changes: 42 additions & 0 deletions
42
tests/Event/Http/Fixture/ag-v2-body-form-content-type.json
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,42 @@ | ||
{ | ||
"version": "2.0", | ||
"routeKey": "ANY /path", | ||
"rawPath": "/path", | ||
"rawQueryString": "", | ||
"headers": { | ||
"Accept": "*/*", | ||
"Accept-Encoding": "gzip, deflate", | ||
"Cache-Control": "no-cache", | ||
"Content-Length": 15, | ||
"Content-Type": "application/x-www-form-urlencoded;charset=UTF-8", | ||
"Host": "example.org", | ||
"User-Agent": "PostmanRuntime/7.20.1", | ||
"X-Amzn-Trace-Id": "Root=1-ffffffff-ffffffffffffffffffffffff", | ||
"X-Forwarded-For": "1.1.1.1", | ||
"X-Forwarded-Port": "443", | ||
"X-Forwarded-Proto": "https" | ||
}, | ||
"queryStringParameters": null, | ||
"stageVariables": null, | ||
"requestContext": { | ||
"accountId": "123400000000", | ||
"apiId": "xxxxxxxxxx", | ||
"domainName": "example.org", | ||
"domainPrefix": "0000000000", | ||
"http": { | ||
"method": "POST", | ||
"path": "/path", | ||
"protocol": "HTTP/1.1", | ||
"sourceIp": "1.1.1.1", | ||
"userAgent": "PostmanRuntime/7.20.1" | ||
}, | ||
"requestId": "JTHoQgr2oAMEPMg=", | ||
"routeId": "47matwk", | ||
"routeKey": "ANY /path", | ||
"stage": "$default", | ||
"time": "24/Nov/2019:18:55:08 +0000", | ||
"timeEpoch": 1574621708700 | ||
}, | ||
"body": "foo=bar&bim=baz", | ||
"isBase64Encoded": false | ||
} |
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,40 @@ | ||
{ | ||
"version": "2.0", | ||
"routeKey": "ANY /path", | ||
"rawPath": "/path", | ||
"rawQueryString": "", | ||
"cookies": [], | ||
"headers": { | ||
"accept": "*/*", | ||
"accept-encoding": "gzip, deflate", | ||
"authorization": "Basic ZmFrZTpzZWNyZXQ=", | ||
"cache-control": "no-cache", | ||
"host": "example.org", | ||
"user-agent": "PostmanRuntime/7.20.1", | ||
"x-amzn-trace-id": "Root=1-ffffffff-ffffffffffffffffffffffff", | ||
"x-forwarded-for": "1.1.1.1", | ||
"x-forwarded-port": "443", | ||
"x-forwarded-proto": "https" | ||
}, | ||
"queryStringParameters": null, | ||
"requestContext": { | ||
"accountId": "123400000000", | ||
"apiId": "xxxxxxxxxx", | ||
"domainName": "example.org", | ||
"domainPrefix": "0000000000", | ||
"http": { | ||
"method": "GET", | ||
"path": "/path", | ||
"protocol": "HTTP/1.1", | ||
"sourceIp": "1.1.1.1", | ||
"userAgent": "PostmanRuntime/7.20.1" | ||
}, | ||
"requestId": "JTHoQgr2oAMEPMg=", | ||
"routeId": "47matwk", | ||
"routeKey": "ANY /path", | ||
"stage": "$default", | ||
"time": "24/Nov/2019:18:55:08 +0000", | ||
"timeEpoch": 1574621708700 | ||
}, | ||
"isBase64Encoded": false | ||
} |
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