Enable WSManCredSSP cmdlets#4336
Conversation
|
AppVeyor failure waiting on #4323 |
There was a problem hiding this comment.
Why were these two checks removed?
There was a problem hiding this comment.
line 486 and 890 already does the check
There was a problem hiding this comment.
Ca you rename this variable to remove the initial "g"?
There was a problem hiding this comment.
Why were these two checks removed?
There was a problem hiding this comment.
- Does this line work on non-Windows platforms?
- Code should not be outside of a Pester block. This should be moved within a BeforeAll
- Check out the guidelines on Admin for Windows
- Consider using the pattern for skipping tests as well.
There was a problem hiding this comment.
- will wrap in $IsWindows
- will wrap in BeforeAll
- this is the opposite of requiring admin, this test requires NOT admin (there isn't a
RequireNotAdminOnWindows) - two different test cases here where the first is only applicable when NOT admin, the second one works either way
There was a problem hiding this comment.
Why are these tests separated into separate files? We have been grouping tests for each cmdlet into a single file.
There was a problem hiding this comment.
I suppose I can combine them. I thought to separate them because at least one test case requires non-admin.
There was a problem hiding this comment.
Just tried it combined and start-pspester only ran the tests as elevated so that one test gets skipped. I'll have to have the non-admin tests as separate.
There was a problem hiding this comment.
Actually it appears you have explicitly run start-pspester with -unelevated. I'll have to take care of this myself in the script then.
There was a problem hiding this comment.
The same comments apply to this file as well
There was a problem hiding this comment.
this is redundant from line 486
1e9b8af to
a06b389
Compare
|
CI failure is due to one of the same failures in the nightly run unrelated to this PR. I'll fix that first. |
There was a problem hiding this comment.
Please check for en-US before comparing.
1501d34 to
c74be60
Compare
|
@mirichmo @adityapatwardhan feedback addressed |
|
@mirichmo can you complete your review? |
There was a problem hiding this comment.
As a general rule when using this pattern, a test that is skipped in an environment should not execute any code.
Lines 11 through 15 should not be executed if the test is skipped. Putting them in an else {} would solve this problem.
|
@mirichmo Can you rebase, it should fix the test failures. |
|
All the CredSSP tests are now passing in AppVeyor and Travis. |
|
@ltamaster CredSSP is only supported on Windows |
|
@SteveL-MSFT It seems PowerShell docs haven't "Supported platforms: Windows, Linux, MacOS" in cmdlet's descriptions. |
|
@iSazonov can you point me to the docs that say it's supported on Linux/macOS? Don't see that line here I think the error message is technically correct as that cmdlet doesn't exist on non-Windows. It's a generic error message if a cmdlet is not found, so implying it's |
|
@SteveL-MSFT I agree that we can leave the generic message "as is" if we enhance our docs.
It is just my request to enhance our docs - add new section "Supported platforms". |


Fixed error message using a null resourcemanager
With most recent CoreFx supporting STA, removed special CoreClr code paths
Added test coverage
Removed some dead commented out code that was never used
Part of #4158
Fix #3353