-
Notifications
You must be signed in to change notification settings - Fork 49
Added test function for Class based resources and adjusted test logic… #75
Conversation
Hi @bgelens, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution! The agreement was validated by Microsoft and real humans are currently evaluating your PR. TTYL, MSBOT; |
Just ran against DSC Class resource. See results: https://ci.appveyor.com/project/bgelens/dockerdsc/build/0.0.0.5 |
I like it 😄 Just a few comments, but nothing major Review status: 0 of 2 files reviewed at latest revision, 7 unresolved discussions. Meta.Tests.ps1, line 205 at r1 (raw file):
Since FileName is a parameter, it should be capitalized.
Meta.Tests.ps1, line 251 at r1 (raw file):
Since FileName is a parameter, it should be capitalized.
TestHelper.psm1, line 525 at r1 (raw file):
The parameter name here needs to be capitalized.
TestHelper.psm1, line 528 at r1 (raw file):
Since this is a parameter, FileName should be capitalized here as well.
TestHelper.psm1, line 530 at r1 (raw file):
If you just return true from inside the foreach loop, you don't need to catch the result TestHelper.psm1, line 534 at r1 (raw file):
TestHelper.psm1, line 539 at r1 (raw file):
if you just return true in the foreach loop above this can all be replaced with: Comments from Reviewable |
Fixed the issues. I changed the parameter name to Path as it makes more sense and adjusted the functions code to be more condensed. |
@bgelens Almost there! Just forgot to change param name in the help comment Reviewed 1 of 2 files at r2. TestHelper.psm1, line 525 at r1 (raw file):
Sorry to be nitpicky about it, but since you have another typo to fix might as well do this at the same time. TestHelper.psm1, line 513 at r2 (raw file):
Forgot to change the parameter name here Comments from Reviewable |
Hope this is it :-) |
Reviewed 1 of 1 files at r3. Comments from Reviewable |
… appropriately
This will test the psm1 file containing Class based resources for parse errors but skips the schema check.
This change is