-
Notifications
You must be signed in to change notification settings - Fork 47
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
MSFT_xRDSessionCollection: Workaround for bug in Windows Server 2019 #92
MSFT_xRDSessionCollection: Workaround for bug in Windows Server 2019 #92
Conversation
…on returns ALL Collections when more than one Collection exists, even though -CollectionName is specified
@danielboth Is there anything else I need to do for this PR to be accepted? |
Hey Rob, are you up for writing a test for this PR as well? For example, you could write a test where the call to Get-RDSessionCollection returns 2 results and then ensure that the correct one is picked from that result. Other than that, PR looks good to me. |
@danielboth Not sure I follow, that's essentially all I did, selecting the appropriate result if there's more than one Collection. Are you wanting an additional test case in https://github.com/dsccommunity/xRemoteDesktopSessionHost/blob/95494e5c06dcebf0241244b61403a00cee3b2d2d/tests/Unit/MSFT_xRDSessionCollection.tests.ps1 with mock data containing more than one Collection? |
…RDSessionCollection in Get-TargetResource Test
Modified the Mock return to include two Collections. |
@danielboth is there anything I can help with to move this PR along? Two of my customers have the same issue, and were able to validate the solution that was proposed here. |
…-RDSessionCollection_Bug
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.
Reviewed 1 of 2 files at r1, 1 of 1 files at r2, 1 of 1 files at r3.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @RobBiddle)
MSFT_xRDSessionCollection: Workaround for bug in Windows Server 2019
Pull Request (PR) description
Workaround for Get-RDSessionCollection bug in Windows Server 2019.
This Pull Request (PR) fixes the following issues
Fixes #91
Task list
Entry should say what was changed, and how that affects users (if applicable).
and comment-based help.
This change is![Reviewable](https://camo.githubusercontent.com/23b05f5fb48215c989e92cc44cf6512512d083132bd3daf689867c8d9d386888/68747470733a2f2f72657669657761626c652e696f2f7265766965775f627574746f6e2e737667)