-
Notifications
You must be signed in to change notification settings - Fork 8.1k
remove Get-PSHostProcessInfo under non-windows platform #5105
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
| } | ||
|
|
||
| Describe "Verify remoting cmdlets that should not be implemented under non-windows platform" -Tags @("CI") { | ||
| It "Get-PSHostProcessInfo should be removed under non-windows platform" -Skip $IsWindows { |
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.
We already have the test in DefaultCommands.Tests.ps1
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 @iSazonov pointed out, the test DefaultCommands.Tests.ps1 covers available cmdlets on different plats by default, can you please update that test?
| #if !UNIX | ||
| {"Disable-PSRemoting", new SessionStateCmdletEntry("Disable-PSRemoting", typeof(DisablePSRemotingCommand), helpFile) }, | ||
| {"Enable-PSRemoting", new SessionStateCmdletEntry("Enable-PSRemoting", typeof(EnablePSRemotingCommand), helpFile) }, | ||
| {"Get-PSHostProcessInfo", new SessionStateCmdletEntry("Get-PSHostProcessInfo", typeof(GetPSHostProcessInfoCommand), helpFile) }, |
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.
What about Enter-PSHostProcess and Exit-PSHostProcess? They are supposed to work with Get-PSHostProcessInfo. Maybe we should exclude them all? @PaulHigin thoughts?
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.
Yes, these cmdlets should be exluded as well.
| } | ||
|
|
||
| Describe "Verify remoting cmdlets that should not be implemented under non-windows platform" -Tags @("CI") { | ||
| It "Get-PSHostProcessInfo should be removed under non-windows platform" -Skip $IsWindows { |
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 @iSazonov pointed out, the test DefaultCommands.Tests.ps1 covers available cmdlets on different plats by default, can you please update that test?
this is to resolve #5081
since api-ms-win-core-file-l1-1-0.dll is not supported under non-windows platform, remove the cmdlet