-
Notifications
You must be signed in to change notification settings - Fork 134
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
BREAKING CHANGE: xWindowsOptionalFeature: Update to a high quality resource (Fixes #229) #237
Conversation
I added a small update after testing with |
Reviewed 6 of 11 files at r1, 2 of 2 files at r2, 2 of 3 files at r3. DSCResources/MSFT_xWindowsOptionalFeature/MSFT_xWindowsOptionalFeature.psm1, line 90 at r3 (raw file):
'There is no default...' DSCResources/MSFT_xWindowsOptionalFeature/en-US/MSFT_xWindowsOptionalFeature.strings.psd1, line 4 at r3 (raw file):
tab this string content in DSCResources/MSFT_xWindowsOptionalFeature/en-US/MSFT_xWindowsOptionalFeature.strings.psd1, line 8 at r3 (raw file):
'CouldNotConvert...' instead of 'Covert' Tests/Unit/MSFT_xWindowsOptionalFeature.Tests.ps1, line 61 at r3 (raw file):
? this test? is it really helpful? Tests/Unit/MSFT_xWindowsOptionalFeature.Tests.ps1, line 243 at r3 (raw file):
Is it possible to specify what is thrown - as this test will pass no matter what's thrown. You could also check that the mock is called Comments from Reviewable |
558ee69
to
7365a8a
Compare
Review status: 8 of 12 files reviewed at latest revision, 5 unresolved discussions, some commit checks failed. DSCResources/MSFT_xWindowsOptionalFeature/MSFT_xWindowsOptionalFeature.psm1, line 90 at r3 (raw file):
|
Reviewed 4 of 4 files at r4. Comments from Reviewable |
Review status: Comments from Reviewable |
There was nothing to merge from the in-box WindowsOptionalFeature for #160 so instead, I went ahead and updated it to a high quality resource.
PSSA is clean on MSFT_xWindowsOptionalFeature.psm1.
Pester is showing unit test coverage at 95%.
Integration tests cover main functionality.
A clearly documented example is provided.
MSFT_xWindowsOptionalFeature.psm1 meets the DSC Resource Kit style guidelines.
All documentation here on GitHub has been updated for this resource.
There is one significant change in this PR which is that the Source parameter has been removed from this resource. This fixes #229. The parameter was not implemented at all in the resource, was not mandatory, and is not a key. However, if you did provide that parameter anyways in a script, those scripts will now break. So I will still mark this as a breaking change.
I also updated the common resource helper with a function to properly import localized strings. (@PlagueHO this is a function to contain the small snippet of localization code you normally add at the beginning of files)
This change is