-
Notifications
You must be signed in to change notification settings - Fork 520
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
PRIORITY / URGENT - Migrate MSCloudLoginAssistant authentication context access to cmdlets #5540
PRIORITY / URGENT - Migrate MSCloudLoginAssistant authentication context access to cmdlets #5540
Conversation
Please add the changelog entry under the 1.24.1211.1 version....we will include it in this weeks release |
Alright, will do. |
6dafa4e
to
28ee71b
Compare
@ykuijs And done. Ready for 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.
LGTM
Unit tests are failing because the Get-MSCloudLoginConnectionProfile function is not mocked and therefore unknown. Can you please add that to all unit test of impacted modules? |
On my way. |
Let's see how this one goes. I also added the two new commands to the unit tests template for the resource generator. |
Still not quite. I'm working on it. |
Nope, not yet. You can't mock functions that haven't been declared yet. To solve it, add the function declaration (no function body required) with the same parameters to the file Tests\Unit\Stubs\Generic.psm1 |
Phew, that was a bunch of stuff to think about... Should have gotten it on the first try though. |
That should do it. Thanks for implementing this so fast, really appreciated! |
Sure thing. Hope the tests work (at least the couple ones I checked now did succeed on my machine). I missed a |
Nik already ran into that Verbose message when testing an export. Definitely something we need to fix, but not a P1 issue for now |
Worked like a charm. Merging now! |
Pull Request (PR) description
This PR migrates the
$global:MSCloudLoginConnectionProfile
access to its specific workload cmdlet counterpart that was introduced with version 1.1.29 of MSCloudLoginAssistant. Without this change, every resource that uses any part of the authentication context will fail!This Pull Request (PR) fixes the following issues
None.
Task list
Entry should say what was changed and how that affects users (if applicable), and
reference the issue being resolved (if applicable).