-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Enable WSManCredSSP cmdlets #4336
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
AppVeyor failure waiting on #4323 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why were these two checks removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line 486 and 890 already does the check
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ca you rename this variable to remove the initial "g"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can do
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why were these two checks removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check happens twice
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The same comments apply to this file as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please check for en-US before comparing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will fix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will fix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will fix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will fix
1501d34 to
c74be60
Compare
|
@mirichmo @adityapatwardhan feedback addressed |
|
@mirichmo can you complete your review? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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