GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — Move WebCmdlets HTTPS tests to WebListener by markekraus · Pull Request #4733 · PowerShell/PowerShell Conversation
|
|
Mark Kraus (@markekraus), |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
a98f667 to
00cae5b
Compare
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
The purely porting of the code looks fine. Some extra whitespace that came from the original test code.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| Select-Object -ExpandProperty Content | | ||
| ConvertFrom-Json | ||
|
|
||
| $result.Status | Should Be 'FAILED' |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
extra space between Status and pipe
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
closed
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| Select-Object -ExpandProperty Content | | ||
| ConvertFrom-Json | ||
|
|
||
| $result.Status | Should Be 'OK' |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
extra space between Status and pipe
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
closed
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| $uri = Get-WebListenerUrl -Https -Test 'Cert' | ||
| $result = Invoke-RestMethod -Uri $uri -SkipCertificateCheck | ||
|
|
||
| $result.Status | Should Be 'FAILED' |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
extra space between Status and pipe
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
closed
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| $certificate = Get-WebListenerClientCertificate | ||
| $result = Invoke-RestMethod -uri $uri -Certificate $certificate -SkipCertificateCheck | ||
|
|
||
| $result.Status | Should Be 'OK' |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
extra space between Status and pipe
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
closed
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
AppVeyor failure is due to #4720 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
thanks for this - it's great that we can move these from using off box connections! I have only one non-blocking question below
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
|
||
| # Test skipped on macOS pending support for Client Certificate Authentication | ||
| # https://github.com/PowerShell/PowerShell/issues/4650 | ||
| It "Verifies Invoke-WebRequest Certificate Authentication Successful with -Certificate" -skip:$IsOSX { |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
if this is eventually going to be run on mac, could you make this -pending:$IsOSX? we track pending tests more closely than skipped tests.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I will switch them to pending. I was asked to "skip" them but perhaps they didn't mean literally to use -skip
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Ah, my bad.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
|
||
| # Test skipped on macOS pending support for Client Certificate Authentication | ||
| # https://github.com/PowerShell/PowerShell/issues/4650 | ||
| It "Verifies Invoke-RestMethod Certificate Authentication Successful with -Certificate" -skip:$IsOSX { |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
same as above - not sure whether this should be -pending rather than -skip
Sorry, something went wrong.
There was an error while loading. Please reload this page.
-skip -> -pending
|
Mark Kraus (@markekraus) Many thanks! I was happy with WebListener, now I am twice happy 😄 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
* Move HTTPS tests to WebListener * Move Invoke-WebRequest HTTPS Tests to Context * [Feature] Move Invoke-RestMethod HTTPS Tests to Context . * [feature] Address PR Feedback * [feature] Mark Cert Auth Tests Pending -skip -> -pending
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.