Added new DSC resource xVirtualMemory#64
Added new DSC resource xVirtualMemory#64mbreakey3 merged 32 commits intodsccommunity:devfrom nyanhp:feature/xVirtualMemory
Conversation
…arameters from Get
|
@nyanhp, It will cover your contributions to all Microsoft-managed open source projects. |
… Testcase checking the hashtable keys will now check them after sorting them properly since the order they were returned in during the automated appveyor tests was different than on a local system.
|
Really great job @nyanhp ! Thank you for submitting this! Sorry about all the nitpicky style changes - hope it's not too annoying! Reviewed 4 of 7 files at r1, 4 of 4 files at r2. README.md, line 81 at r2 (raw file):
Please add CRLF above this line to meet Markdown rules. README.md, line 83 at r2 (raw file):
Please add CRLF above this line to meet Markdown rules. DSCResources/MSFT_xVirtualMemory/MSFT_xVirtualMemory.psm1, line 16 at r2 (raw file):
Can you please convert positional parameter to named parameter? DSCResources/MSFT_xVirtualMemory/MSFT_xVirtualMemory.psm1, line 27 at r2 (raw file):
Move { to next line please. DSCResources/MSFT_xVirtualMemory/MSFT_xVirtualMemory.psm1, line 34 at r2 (raw file):
Can you please convert positional parameter to named parameter? DSCResources/MSFT_xVirtualMemory/MSFT_xVirtualMemory.psm1, line 37 at r2 (raw file):
Remove extra space after = DSCResources/MSFT_xVirtualMemory/MSFT_xVirtualMemory.psm1, line 39 at r2 (raw file):
Please move { to next line. DSCResources/MSFT_xVirtualMemory/MSFT_xVirtualMemory.psm1, line 44 at r2 (raw file):
Please move { to next line. DSCResources/MSFT_xVirtualMemory/MSFT_xVirtualMemory.psm1, line 47 at r2 (raw file):
Please move { to next line. DSCResources/MSFT_xVirtualMemory/MSFT_xVirtualMemory.psm1, line 83 at r2 (raw file):
Please move { to next line. DSCResources/MSFT_xVirtualMemory/MSFT_xVirtualMemory.psm1, line 84 at r2 (raw file):
Please move { to next line. DSCResources/MSFT_xVirtualMemory/MSFT_xVirtualMemory.psm1, line 91 at r2 (raw file):
Can you please convert positional parameter to named parameter? DSCResources/MSFT_xVirtualMemory/MSFT_xVirtualMemory.psm1, line 97 at r2 (raw file):
Please move { to next line. DSCResources/MSFT_xVirtualMemory/MSFT_xVirtualMemory.psm1, line 98 at r2 (raw file):
Please move { to next line. DSCResources/MSFT_xVirtualMemory/MSFT_xVirtualMemory.psm1, line 107 at r2 (raw file):
Can you please convert positional parameter to named parameter? DSCResources/MSFT_xVirtualMemory/MSFT_xVirtualMemory.psm1, line 113 at r2 (raw file):
Please move { to next line. DSCResources/MSFT_xVirtualMemory/MSFT_xVirtualMemory.psm1, line 119 at r2 (raw file):
Can you please convert positional parameter to named parameter? DSCResources/MSFT_xVirtualMemory/MSFT_xVirtualMemory.psm1, line 121 at r2 (raw file):
Please move { to next line. DSCResources/MSFT_xVirtualMemory/MSFT_xVirtualMemory.psm1, line 126 at r2 (raw file):
Nitpick - no need for # DSCResources/MSFT_xVirtualMemory/MSFT_xVirtualMemory.psm1, line 138 at r2 (raw file):
Can you please convert positional parameter to named parameter? DSCResources/MSFT_xVirtualMemory/MSFT_xVirtualMemory.psm1, line 144 at r2 (raw file):
Please move { to next line. DSCResources/MSFT_xVirtualMemory/MSFT_xVirtualMemory.psm1, line 145 at r2 (raw file):
Please move { to next line. DSCResources/MSFT_xVirtualMemory/MSFT_xVirtualMemory.psm1, line 152 at r2 (raw file):
Can you please convert positional parameter to named parameter? DSCResources/MSFT_xVirtualMemory/MSFT_xVirtualMemory.psm1, line 158 at r2 (raw file):
Please move { to next line. DSCResources/MSFT_xVirtualMemory/MSFT_xVirtualMemory.psm1, line 162 at r2 (raw file):
Can you please convert positional parameters to named parameters? DSCResources/MSFT_xVirtualMemory/MSFT_xVirtualMemory.psm1, line 167 at r2 (raw file):
Please move { to next line. DSCResources/MSFT_xVirtualMemory/MSFT_xVirtualMemory.psm1, line 181 at r2 (raw file):
Can you please convert positional parameter to named parameter? DSCResources/MSFT_xVirtualMemory/MSFT_xVirtualMemory.psm1, line 187 at r2 (raw file):
Please move { to next line. DSCResources/MSFT_xVirtualMemory/MSFT_xVirtualMemory.psm1, line 188 at r2 (raw file):
Please move { to next line. DSCResources/MSFT_xVirtualMemory/MSFT_xVirtualMemory.psm1, line 199 at r2 (raw file):
Please move { to next line. DSCResources/MSFT_xVirtualMemory/MSFT_xVirtualMemory.psm1, line 206 at r2 (raw file):
Please move { to next line. DSCResources/MSFT_xVirtualMemory/MSFT_xVirtualMemory.psm1, line 207 at r2 (raw file):
Can you please convert positional parameter to named parameter? DSCResources/MSFT_xVirtualMemory/MSFT_xVirtualMemory.psm1, line 216 at r2 (raw file):
Please move { to next line. DSCResources/MSFT_xVirtualMemory/MSFT_xVirtualMemory.psm1, line 248 at r2 (raw file):
Please move { to next line. DSCResources/MSFT_xVirtualMemory/MSFT_xVirtualMemory.psm1, line 252 at r2 (raw file):
Please move { to next line. DSCResources/MSFT_xVirtualMemory/MSFT_xVirtualMemory.psm1, line 253 at r2 (raw file):
Please move { to next line. DSCResources/MSFT_xVirtualMemory/MSFT_xVirtualMemory.psm1, line 260 at r2 (raw file):
Please move { to next line. DSCResources/MSFT_xVirtualMemory/MSFT_xVirtualMemory.psm1, line 265 at r2 (raw file):
Please move { to next line. DSCResources/MSFT_xVirtualMemory/MSFT_xVirtualMemory.psm1, line 273 at r2 (raw file):
Please move { to next line. DSCResources/MSFT_xVirtualMemory/MSFT_xVirtualMemory.psm1, line 274 at r2 (raw file):
Please move { to next line. DSCResources/MSFT_xVirtualMemory/MSFT_xVirtualMemory.psm1, line 281 at r2 (raw file):
Please move { to next line. DSCResources/MSFT_xVirtualMemory/MSFT_xVirtualMemory.psm1, line 286 at r2 (raw file):
Please move { to next line. DSCResources/MSFT_xVirtualMemory/MSFT_xVirtualMemory.psm1, line 294 at r2 (raw file):
Please move { to next line. DSCResources/MSFT_xVirtualMemory/MSFT_xVirtualMemory.psm1, line 295 at r2 (raw file):
Please move { to next line. DSCResources/MSFT_xVirtualMemory/MSFT_xVirtualMemory.psm1, line 303 at r2 (raw file):
Please move { to next line. DSCResources/MSFT_xVirtualMemory/MSFT_xVirtualMemory.psm1, line 311 at r2 (raw file):
Please move { to next line. DSCResources/MSFT_xVirtualMemory/MSFT_xVirtualMemory.schema.mof, line 5 at r2 (raw file):
Can you please add description values to each field? This will help when we move over to auto-documentation generation from the MOF files (being worked on at the moment). Tests/Integration/MSFT_xVirtualMemory.Integration.Tests.ps1, line 13 at r2 (raw file):
Can you please delete the header comment? Tests/Integration/MSFT_xVirtualMemory.Integration.Tests.ps1, line 46 at r2 (raw file):
Can you please convert positional parameters to named parameters? Tests/Integration/MSFT_xVirtualMemory.Integration.Tests.ps1, line 47 at r2 (raw file):
Can you please convert positional parameters to named parameters? Tests/Integration/MSFT_xVirtualMemory.Integration.Tests.ps1, line 68 at r2 (raw file):
Can you please convert positional parameters to named parameters? Tests/Integration/MSFT_xVirtualMemory.Integration.Tests.ps1, line 69 at r2 (raw file):
Can you please convert positional parameters to named parameters? Tests/Integration/MSFT_xVirtualMemory.Integration.Tests.ps1, line 90 at r2 (raw file):
Can you please convert positional parameters to named parameters? Tests/Integration/MSFT_xVirtualMemory.Integration.Tests.ps1, line 91 at r2 (raw file):
Can you please convert positional parameters to named parameters? Tests/Integration/MSFT_xVirtualMemory.Integration.Tests.ps1, line 112 at r2 (raw file):
Can you please convert positional parameters to named parameters? Tests/Integration/MSFT_xVirtualMemory.Integration.Tests.ps1, line 113 at r2 (raw file):
Can you please convert positional parameters to named parameters? Tests/Integration/MSFT_xVirtualMemory.Integration.Tests.ps1, line 141 at r2 (raw file):
Can you delete this line? Tests/Unit/MSFT_xComputer.Tests.ps1, line 133 at r2 (raw file):
Is this an intentional fix to the tests? If so, no worries - I can see it is correct 😁 Tests/Unit/MSFT_xVirtualMemory.Tests.ps1, line 46 at r2 (raw file):
Nitpick: Why not: [PSObject] @{ AutomaticManagegPageFile = $false; Name = 'D:\pagefile.sys' }Also, if the Mock return is going to be used more than once (as is the case further down), you can store the object in a variable and return that from the mock to reduce code. Tests/Unit/MSFT_xVirtualMemory.Tests.ps1, line 125 at r2 (raw file):
Nitpick: Move inner block to it's own line to improve readability. Tests/Unit/MSFT_xVirtualMemory.Tests.ps1, line 134 at r2 (raw file):
Nitpick: Move inner block to it's own line to improve readability. Comments from Reviewable |
…s on new line, positional parameters changed to named parameters)
|
No worries @PlagueHO , a consistent style is very important! In Visual Studio with Style Cop it was easier though :) I fixed all styling issues and pushed my changes. Thank you for reviewing them! Regarding the modified test for xComputer: Somehow when AppVeyor kicked in, the order of the results was checked very strictly. On my client, I had no problems with the test as it was before. Since my tests kept failing due to this, I changed the expected order and the order of the returned values to be alphabetic. |
|
Hi @PlagueHO , is there anything else I need to do? I fixed everything and pushed my code. Do I need to do things on Reviewable as well? |
|
@nyanhp, thanks for signing the contribution license agreement. We will now validate the agreement and then the pull request. |
|
Hi @nyanhp, no, you're good. Leave it with me and ill get a review done tonight after work! Really appreciate your work and patience! Sorry about the delay! |
|
Hi @nyanhp - looking really good - just a few changes missed ( moving { to next line ). Will be good to go after those are fixed. Reviewed 5 of 5 files at r3. DSCResources/MSFT_xVirtualMemory/MSFT_xVirtualMemory.psm1, line 248 at r2 (raw file): Previously, PlagueHO (Daniel Scott-Raynsford) wrote…
Missed this one. DSCResources/MSFT_xVirtualMemory/MSFT_xVirtualMemory.psm1, line 252 at r2 (raw file): Previously, PlagueHO (Daniel Scott-Raynsford) wrote…
Missed this one. DSCResources/MSFT_xVirtualMemory/MSFT_xVirtualMemory.psm1, line 253 at r2 (raw file): Previously, PlagueHO (Daniel Scott-Raynsford) wrote…
Missed this one. DSCResources/MSFT_xVirtualMemory/MSFT_xVirtualMemory.psm1, line 260 at r2 (raw file): Previously, PlagueHO (Daniel Scott-Raynsford) wrote…
Missed this one. DSCResources/MSFT_xVirtualMemory/MSFT_xVirtualMemory.psm1, line 265 at r2 (raw file): Previously, PlagueHO (Daniel Scott-Raynsford) wrote…
Missed this one. DSCResources/MSFT_xVirtualMemory/MSFT_xVirtualMemory.psm1, line 273 at r2 (raw file): Previously, PlagueHO (Daniel Scott-Raynsford) wrote…
Missed this one. DSCResources/MSFT_xVirtualMemory/MSFT_xVirtualMemory.psm1, line 274 at r2 (raw file): Previously, PlagueHO (Daniel Scott-Raynsford) wrote…
Missed this one. DSCResources/MSFT_xVirtualMemory/MSFT_xVirtualMemory.psm1, line 281 at r2 (raw file): Previously, PlagueHO (Daniel Scott-Raynsford) wrote…
Missed this one. DSCResources/MSFT_xVirtualMemory/MSFT_xVirtualMemory.psm1, line 286 at r2 (raw file): Previously, PlagueHO (Daniel Scott-Raynsford) wrote…
Missed this one. DSCResources/MSFT_xVirtualMemory/MSFT_xVirtualMemory.psm1, line 294 at r2 (raw file): Previously, PlagueHO (Daniel Scott-Raynsford) wrote…
Missed this one. DSCResources/MSFT_xVirtualMemory/MSFT_xVirtualMemory.psm1, line 295 at r2 (raw file): Previously, PlagueHO (Daniel Scott-Raynsford) wrote…
Missed this one. DSCResources/MSFT_xVirtualMemory/MSFT_xVirtualMemory.psm1, line 303 at r2 (raw file): Previously, PlagueHO (Daniel Scott-Raynsford) wrote…
Missed this one. DSCResources/MSFT_xVirtualMemory/MSFT_xVirtualMemory.psm1, line 311 at r2 (raw file): Previously, PlagueHO (Daniel Scott-Raynsford) wrote…
Missed this one. Comments from Reviewable |
|
Don't worry @PlagueHO . I was just asking since this was my first PR and I was not entirely sure if I had to do additional things. I think I formatted everything I missed before. |
|
@nyanhp, thanks for signing the contribution license agreement. We will now validate the agreement and then the pull request. |
|
Great job @nyanhp! Sorry, I missed a couple of issues (each function must have Comment Based help) though. Reviewed 1 of 1 files at r4. DSCResources/MSFT_xVirtualMemory/MSFT_xVirtualMemory.psm1, line 1 at r4 (raw file):
Doh! Something I nearly missed: All functions need to have Comment based help (see https://github.com/PowerShell/DscResources/blob/master/StyleGuidelines.md#functions-have-comment-based-help) DSCResources/MSFT_xVirtualMemory/MSFT_xVirtualMemory.psm1, line 63 at r4 (raw file):
Doh! Something I nearly missed: All functions need to have Comment based help (see https://github.com/PowerShell/DscResources/blob/master/StyleGuidelines.md#functions-have-comment-based-help) DSCResources/MSFT_xVirtualMemory/MSFT_xVirtualMemory.psm1, line 242 at r4 (raw file):
Doh! Something I nearly missed: All functions need to have Comment based help (see https://github.com/PowerShell/DscResources/blob/master/StyleGuidelines.md#functions-have-comment-based-help) Comments from Reviewable |
|
Hi @PlagueHO, done. |
|
Hi @nyanhp - Regards the comment based help: over time the style guidelines have evolved somewhat - so earlier modules might not meet the current standards. This has introduced tech debt that we'd like to fix (but it takes time) - I'm slowly working my way through it (working on xCertificate ATM). We've also been trying to move the core resource kit modules over to meet HQRM standards (https://github.com/PowerShell/DscResources/blob/master/HighQualityModuleGuidelines.md). Comment Based help is one of the HQRM standards. I will say that there has been a bit of too and fro over this particular one in the past and it was decided to keep it 😁 Long story short: We'll want to add comment based help to any modules that are missing it. I'll finish this review over the weekend (been a bit of a hectic week). Thanks for all your help and patience! |
|
Actually, it wasn't a big review - so I did it now. Reviewed 1 of 1 files at r5. Comments from Reviewable |
|
@mbreakey3 - if you get a chance, could you merge this one for us? I think it's good to go. Cheers Dan |
Added a new DSC resource xVirtualMemory to be able to set the paging file on a machine. Fixes #63 . In addition to the new resource, unit and integration tests and a sample script were provided as well.
This change is