PowerShell/test
Dan Travison 039ed6764d Strip authorization header on redirects with web cmdlets (#3885)
Invoke-WebRequest and Invoke-RestMethod cmdlets will now strip authorization header on redirect unless the new parameter `-PreserveAuthorizationOnRedirect` is specified.

The FullCLR implementation uses WebRequest to perform the request which silently strips the Authorization header when a redirect occurs.

The CoreCLR implementation uses HttpClient to perform the request which does not strip the authorization header. The change explicitly handles the initial redirect, removes the authorization header and submits the request to location in the response.

Fixes #2227
2017-06-15 15:52:08 -07:00
..
common/markdown Fix markdown lint issues for SSH Remoting demo and enable related tests (#3484) 2017-04-11 09:42:37 -07:00
csharp Move powershell to .NET Core 2.0 (#3556) 2017-04-17 11:52:38 -07:00
docker/networktest Add dockerfile and test so we can test simple remoting behaviors (#3470) 2017-04-21 17:23:08 -07:00
fullclr Remove trailing whitespace (#3001) 2017-01-16 13:31:14 -08:00
powershell Strip authorization header on redirects with web cmdlets (#3885) 2017-06-15 15:52:08 -07:00
PSReadLine Move powershell to .NET Core 2.0 (#3556) 2017-04-17 11:52:38 -07:00
shebang Reorganize tests 2016-01-14 17:00:06 -08:00
tools Strip authorization header on redirects with web cmdlets (#3885) 2017-06-15 15:52:08 -07:00
map.json Edit map.json to add in PackageManagement tests 2016-07-12 21:17:11 -07:00
README.md Add test/README.md 2016-03-30 23:30:26 -07:00

Testing

The tests are organized by testing language. Thus Pester tests, which are written in the PowerShell language, are in ./powershell and xUnit tests, written in C#, are in ./csharp. The sanity tests for the Full .NET build of PowerShell are in ./fullclr, and the third-party shebang test is in ./shebang.