-
Notifications
You must be signed in to change notification settings - Fork 88
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
Migrate to Pester 5 #532
base: main
Are you sure you want to change the base?
Migrate to Pester 5 #532
Conversation
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 29 of 29 files at r1, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @dan-hughes)
source/Private/Convert-CIDRToSubnetMask.ps1
line 9 at r1 (raw file):
The array of addresses to that need to be converted. #> function Convert-CIDRToSubnetMask
If these are gonna be used in the MOF resources they need to be public functions, not private. Throughout where function is needed in MOF resource.
Code quote:
Convert-CIDRToSubnetMask
tests/TestHelpers/CommonTestHelper.psm1
line 210 at r1 (raw file):
Test-NetworkTeamIntegrationEnvironment, ` New-IntegrationLoopbackAdapter, ` Remove-IntegrationLoopbackAdapter
Maybe here we should keep the export-modulemember since it says what to export even if there are more (private) functions in the module. 🤔
Code quote:
Export-ModuleMember -Function `
Get-InvalidArgumentRecord, `
Get-InvalidOperationRecord, `
Test-NetworkTeamIntegrationEnvironment, `
New-IntegrationLoopbackAdapter, `
Remove-IntegrationLoopbackAdapter
Yeah, give me a minute. I wanted to check the build worked. I'm going to get all the integration tests up and running as there are HQRM fixes required 😊 |
No worries No hurry. I saw it was not draft so when I had a minute left I just browsed through it. 🙂 |
Pull Request (PR) description
Migrate all tests to Pester 5
This Pull Request (PR) fixes the following issues
Task list
file CHANGELOG.md. Entry should say what was changed and how that
affects users (if applicable), and reference the issue being resolved
(if applicable).
and comment-based help.
This change is