-
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
xRegistry: Merge with In-Box Resource, Add Tests, and Fix Key/Value Removal #226
Conversation
601bac8
to
812ee69
Compare
812ee69
to
31b659c
Compare
Made a small update to the code so that tests now all pass with StrictMode -Version 4. |
Reviewed 5 of 7 files at r1. Tests/Unit/MSFT_xRegistryResource.TestHelper.psm1, line 373 at r1 (raw file):
Why is this being set to null? Can you add a comment in this function? Tests/Unit/MSFT_xRegistryResource.TestHelper.psm1, line 400 at r1 (raw file):
Do you mean 'Dismount' here in this Verbose message? Tests/Unit/MSFT_xRegistryResource.TestHelper.psm1, line 449 at r1 (raw file):
maybe change this to $hexString for clarity? Tests/Unit/MSFT_xRegistryResource.Tests.ps1, line 18 at r1 (raw file):
Could there ever be a situation where this infinite loops? Tests/Unit/MSFT_xRegistryResource.Tests.ps1, line 255 at r1 (raw file):
It says true testing value says $false Comments from Reviewable |
Review status: 5 of 7 files reviewed at latest revision, 5 unresolved discussions. Tests/Unit/MSFT_xRegistryResource.TestHelper.psm1, line 373 at r1 (raw file):
|
Reviewed 2 of 2 files at r2. Comments from Reviewable |
Review status: all files reviewed at latest revision, all discussions resolved, all commit checks successful. Comments from Reviewable |
Tests/Unit/MSFT_xRegistryResource.TestHelper.psm1, line 3 at r2 (raw file):
Comments from Reviewable |
Tests/Unit/MSFT_xRegistryResource.TestHelper.psm1, line 111 at r2 (raw file):
Check the value here. If it is Comments from Reviewable |
Tests/Unit/MSFT_xRegistryResource.TestHelper.psm1, line 168 at r2 (raw file):
Why not use Comments from Reviewable |
Tests/Unit/MSFT_xRegistryResource.TestHelper.psm1, line 318 at r2 (raw file):
Use Comments from Reviewable |
Tests/Unit/MSFT_xRegistryResource.TestHelper.psm1, line 376 at r2 (raw file):
This is the same as Comments from Reviewable |
Tests/Unit/MSFT_xRegistryResource.TestHelper.psm1, line 376 at r2 (raw file):
Where is this coming from? Comments from Reviewable |
Tests/Unit/MSFT_xRegistryResource.Tests.ps1, line 18 at r1 (raw file):
|
Tests/Unit/MSFT_xRegistryResource.Tests.ps1, line 31 at r2 (raw file):
What's the point of this IF statement here? Comments from Reviewable |
Tests/Unit/MSFT_xRegistryResource.Tests.ps1, line 33 at r2 (raw file):
Why set a variable right before throwing an exception? And what's the Comments from Reviewable |
Tests/Unit/MSFT_xRegistryResource.Tests.ps1, line 56 at r2 (raw file):
I don't see the need for this variable. If the key is supposed to be a test key created for this test suite only, why should we not delete it afterwards? Comments from Reviewable |
Tests/Unit/MSFT_xRegistryResource.Tests.ps1, line 114 at r2 (raw file):
Why not define this in Comments from Reviewable |
@zjalali I will submit a new PR with changes per your comments 👍 Review status: all files reviewed at latest revision, 11 unresolved discussions. Tests/Unit/MSFT_xRegistryResource.TestHelper.psm1, line 3 at r2 (raw file):
|
should have probably dealt with #114 as well, while at it, its not a big change either. |
This is for #160.
I merged the Registry resource with our current in-box resource. This was a fairly small change.
I also ported the Registry unit tests.
While porting these tests, I found that removal of registry keys and values with the resource was not working, so I fixed this as well.
This change is