-
Notifications
You must be signed in to change notification settings - Fork 67
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
Added xCertificateExport Resource - Fixes #41 #48
Added xCertificateExport Resource - Fixes #41 #48
Conversation
@PlagueHO Will continue review tomorrow. |
No problem :) Just wish I could do this full time. :) I don't have so much more time tonight. I will review the *Export* files as soon as possible. Reviewed 4 of 37 files at r1, 13 of 15 files at r2. Tests/Unit/MSFT_xCertificateExport.tests.ps1, line 3 at r1 (raw file): Previously, PlagueHO (Daniel Scott-Raynsford) wrote…
Hmm. It doesn't seem to take. I think I had to remove and add a file for it to get the file rename. :/ Must be a better way. Comments from Reviewable |
Reviewed 1 of 11 files at r3, 3 of 3 files at r4. Tests/Unit/CertificateDsc.Common.Tests.ps1, line 190 at r4 (raw file):
Actually, instead of repeating the same mock, you should add the Mock in a BeforeEach-block inside the Describe-block. That will trigger before each It-block. Would this work here? Inside the InModuleScope-block (
Inside BeforeEach-block in the describe-block.
Before any needed Context-block or/and It-block to be tested. Dynamically change the store path in the mock parameter filter.
Inside the Assert It-block
At the end of the Describe-block
Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 128 at r4 (raw file):
Blank rows between the blocks here to please. Throughout the file :) Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 166 at r4 (raw file):
Don't follow you here. Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 177 at r4 (raw file):
Blank row before this row, and between all the other Mocks. (align with guide, and makes it easier for the eyes to review too) Curious, is this a style of coding you are using? I have seen several contributors putting blocks together. That can't be a coincidence. :) Since my C coding days I always been taught to leave room between each block, so I do it without thinking 😃 Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 187 at r4 (raw file):
Just marking a point where I should continue the review. Comments from Reviewable |
@PlagueHO You're welcome! 😄 I'm kind of used to bigger changes from xSQLServer 😄 Okay, just one more left! Looking forward to this one. First time reviewing an integration test I think. Looking forward to learning a lot. Reviewed 2 of 11 files at r3. Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 26 at r4 (raw file):
Minor: I rather see all these variables with 'cert' written out to 'certificate'. This and the 8 below. Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 36 at r4 (raw file):
Please change to $validCertificate Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 56 at r4 (raw file):
Please change to $validCertificateParameters Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 71 at r4 (raw file):
Please change to $validCertificateMatchSourceParameters Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 76 at r4 (raw file):
Please change to $pfxCredential, or $pfxCredentialObject, or even $pfxPasswordCredentialObject (since the parameter is Password and is an credential object 😄 ) Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 79 at r4 (raw file):
Please change to $validPfxParameters Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 96 at r4 (raw file):
Please change to $validPfxMatchSourceParameters Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 106 at r4 (raw file):
Please add a blank row before this one. Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 113 at r4 (raw file):
Please change to $importedCertificateMatch Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 114 at r4 (raw file):
Please change to $importedCertificateNoMatch Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 152 at r4 (raw file):
Could you move these to a BeforeEach-block and make them dynamically instead? Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 161 at r4 (raw file):
Mock Export-Certificate and Export-PfxCertificate to make sure the don't get called. (will be done if you add them to the BeforeEach-block in previous comment) Move Assert-VerifiableMocks to the end of the Describe-block Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 188 at r4 (raw file):
You are mocking everything, so is could not possible throw (?). Suggest to change the mock so that if verifies the incoming parameters are assigned the expected parameters (below i.e (inside the InModuleScope-block)
Mock the cmdlet
Before calling Set-TargetResource
Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 191 at r4 (raw file):
Change to `Assert-MockCalled -CommandName Export-Certificate -Exactly -Times 1 Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 192 at r4 (raw file):
Must have Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 223 at r4 (raw file):
Same as previous comment regarding mocking Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 225 at r4 (raw file):
Same as the previous comments regarding the assertions Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 234 at r4 (raw file):
You could do these dynamically in a BeforeEach-block as well. Maybe? I'm good with how they are here in the Test Describe-block. If making it dynamically it makes more code. But was hoping it could use same code as in the Set-method testing. Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 240 at r4 (raw file):
$true (lower 't') Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 243 at r4 (raw file):
Rather have Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 255 at r4 (raw file):
$false (lower 'f') Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 259 at r4 (raw file):
$false (lower 'f') Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 273 at r4 (raw file):
$true (lower 't') Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 277 at r4 (raw file):
$true (lower 't') Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 291 at r4 (raw file):
$true (lower 't') Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 299 at r4 (raw file):
$true (lower 't') Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 313 at r4 (raw file):
$true (lower 't') Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 321 at r4 (raw file):
$false (lower 'f') Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 335 at r4 (raw file):
$true (lower 't') Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 343 at r4 (raw file):
$true (lower 't') Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 357 at r4 (raw file):
$true (lower 't') Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 365 at r4 (raw file):
$false(lower 'f') Comments from Reviewable |
|
||
$newSelfSignedCertURL = 'https://gallery.technet.microsoft.com/scriptcenter/Self-signed-certificate-5920a7c6/file/101251/2/New-SelfSignedCertificateEx.zip' | ||
$newSelfSignedCertZip = Split-Path -Path $newSelfSignedCertURL -Leaf | ||
$newSelfSignedCertZipPath = Join-Path -Path $ENV:Temp -ChildPath $newSelfSignedCertZip |
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.
I think it would be better to have a parameter to where to install/save the script (and not hardcode to $env:Temp
. Then the integration test will not break if this function changes.
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.
Adding this Reviewable instead.
Reviewed 1 of 39 files at r1. Tests/Integration/MSFT_xCertificateExport.Integration.Tests.ps1, line 26 at r4 (raw file):
Please change to $configurationFile Tests/Integration/MSFT_xCertificateExport.Integration.Tests.ps1, line 31 at r4 (raw file):
Function should provide a parameter Tests/Integration/MSFT_xCertificateExport.Integration.Tests.ps1, line 34 at r4 (raw file):
Nitpick: Should we write Rename $script:certPath to $script:certificatePath Tests/Integration/MSFT_xCertificateExport.Integration.Tests.ps1, line 38 at r4 (raw file):
Why $script on some, and not all or none? I have seen that Katie and Mariah is using $script on some but not all too. This says we should use $script on all so I guess those that does not use it, is just a miss in the review. :) I forget to enforce this one. If we should enforce this one, and we should since your aiming at HQRM, then this is wrong in all your tests in this module. Tests/Integration/MSFT_xCertificateExport.Integration.Tests.ps1, line 42 at r4 (raw file):
Please change to $pfxCredential, or $pfxPasswordCredentialObject Tests/Integration/MSFT_xCertificateExport.Integration.Tests.ps1, line 46 at r4 (raw file):
Please change 'cert' to 'certificate' for this and the below 5. Tests/Integration/MSFT_xCertificateExport.Integration.Tests.ps1, line 60 at r4 (raw file):
Change to $script:validCertificateThumbprint Tests/Integration/MSFT_xCertificateExport.Integration.Tests.ps1, line 64 at r4 (raw file):
I doesn't just compiles it applies the configuration as well. Tests/Integration/MSFT_xCertificateExport.Integration.Tests.ps1, line 87 at r4 (raw file):
Blank row before this one Tests/Integration/MSFT_xCertificateExport.Integration.Tests.ps1, line 88 at r4 (raw file):
Not (upper 'N') Tests/Integration/MSFT_xCertificateExport.Integration.Tests.ps1, line 91 at r4 (raw file):
Should (upper 'S') Tests/Integration/MSFT_xCertificateExport.Integration.Tests.ps1, line 92 at r4 (raw file):
Throw (upper 'T') Tests/Integration/MSFT_xCertificateExport.Integration.Tests.ps1, line 96 at r4 (raw file):
Should (upper 'S') Tests/Integration/MSFT_xCertificateExport.Integration.Tests.ps1, line 97 at r4 (raw file):
$true (lower 't') Tests/Integration/MSFT_xCertificateExport.Integration.Tests.ps1, line 109 at r4 (raw file):
I doesn't just compiles it applies the configuration as well. Tests/Integration/MSFT_xCertificateExport.Integration.Tests.ps1, line 135 at r4 (raw file):
Blank row before this one. Tests/Integration/MSFT_xCertificateExport.Integration.Tests.ps1, line 136 at r4 (raw file):
Not (Upper 'N') Tests/Integration/MSFT_xCertificateExport.Integration.Tests.ps1, line 139 at r4 (raw file):
Should (upper 'S') Tests/Integration/MSFT_xCertificateExport.Integration.Tests.ps1, line 144 at r4 (raw file):
Should (upper 'S') Comments from Reviewable |
Review status: all files reviewed at latest revision, 57 unresolved discussions. Modules/CertificateDsc.Common/CertificateDSc.Common.psm1, line 264 at r4 (raw file):
Could you add blank row after each if-block here? Comments from Reviewable |
Review status: all files reviewed at latest revision, 57 unresolved discussions. Tests/TestHelpers/CommonTestHelper.psm1, line 110 at r4 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Ah, Reviewable caught the comment made from Github. Very nice! Comments from Reviewable |
Thanks for reviewing @johlju - I've still got some changes to make to the unit tests, but everything else should be done (except for the changes I don't think should be made). Thanks again! I know how long all this takes 😁 Review status: 28 of 38 files reviewed at latest revision, 57 unresolved discussions. Modules/CertificateDsc.Common/CertificateDSc.Common.psm1, line 264 at r4 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Tests/Integration/MSFT_xCertificateExport.Integration.Tests.ps1, line 26 at r4 (raw file): Previously, johlju (Johan Ljunggren) wrote…
I'm not sure about this one - I'm wondering if it is better to stay inline with the naming used in the Template because that is the convention used in all other repos. Tests/Integration/MSFT_xCertificateExport.Integration.Tests.ps1, line 31 at r4 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. But using the default Temp folder so no change to this line. Tests/Integration/MSFT_xCertificateExport.Integration.Tests.ps1, line 34 at r4 (raw file): Previously, johlju (Johan Ljunggren) wrote…
I don't have a preference for $env: . But I am fairly obsessive about consistency within a repo - so I've done a global search/replace to set them all to $env: - so this has resulted in additional files being changed 😢 sorry about that. I have also changed to $script:certificatePath Tests/Integration/MSFT_xCertificateExport.Integration.Tests.ps1, line 38 at r4 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Any variable that needs to be accessible in an I think this rule is not clear because I don't think the intent is for every variable to be scoped to $Env, $Script or $Global. I think it just means that if a variable is scoped (to anything but $Local) then you must specify the scope everywhere it is used. @kwirkykat - would you like to confirm this? Tests/Integration/MSFT_xCertificateExport.Integration.Tests.ps1, line 42 at r4 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Tests/Integration/MSFT_xCertificateExport.Integration.Tests.ps1, line 46 at r4 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Tests/Integration/MSFT_xCertificateExport.Integration.Tests.ps1, line 60 at r4 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Tests/Integration/MSFT_xCertificateExport.Integration.Tests.ps1, line 64 at r4 (raw file): Previously, johlju (Johan Ljunggren) wrote…
I've changed this (and all the other integration tests) to match the text in the template: Tests/Integration/MSFT_xCertificateExport.Integration.Tests.ps1, line 87 at r4 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. And in all other integration tests Tests/Integration/MSFT_xCertificateExport.Integration.Tests.ps1, line 88 at r4 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. And in all other integration tests Tests/Integration/MSFT_xCertificateExport.Integration.Tests.ps1, line 91 at r4 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. And in all other integration tests Tests/Integration/MSFT_xCertificateExport.Integration.Tests.ps1, line 92 at r4 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. And in all other integration tests Tests/Integration/MSFT_xCertificateExport.Integration.Tests.ps1, line 109 at r4 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Tests/Integration/MSFT_xCertificateExport.Integration.Tests.ps1, line 135 at r4 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Tests/Integration/MSFT_xCertificateExport.Integration.Tests.ps1, line 136 at r4 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Tests/Integration/MSFT_xCertificateExport.Integration.Tests.ps1, line 139 at r4 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Tests/Integration/MSFT_xCertificateExport.Integration.Tests.ps1, line 144 at r4 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Tests/TestHelpers/CommonTestHelper.psm1, line 110 at r4 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 255 at r4 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 259 at r4 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 273 at r4 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 277 at r4 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 291 at r4 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 299 at r4 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 313 at r4 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 321 at r4 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 335 at r4 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 343 at r4 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 357 at r4 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 365 at r4 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Comments from Reviewable |
Review status: 28 of 38 files reviewed at latest revision, 57 unresolved discussions. Tests/Integration/MSFT_xCertificateExport.Integration.Tests.ps1, line 96 at r4 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. And in all other integration tests Tests/Integration/MSFT_xCertificateExport.Integration.Tests.ps1, line 97 at r4 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. And in all other integration tests Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 26 at r4 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 36 at r4 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 71 at r4 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 76 at r4 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Used $pfxCredential Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 79 at r4 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 106 at r4 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 113 at r4 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 114 at r4 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 128 at r4 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 166 at r4 (raw file): Previously, johlju (Johan Ljunggren) wrote…
I have clarified this in the comment. So yes, that is essentially the problem. But for more detail: I could create a self-signed x509 cert in the Windows certificate store and export it and then use that [x509Certificate2] object to return from the Get-ChildItem mock, but this would be a destructive change to the host system and therefore not acceptable for unit tests (but A-OK for integration tests). So I've opted to do it this way and perform a full functional test in the integration tests. Comments from Reviewable |
Review status: 28 of 38 files reviewed at latest revision, 56 unresolved discussions. Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 56 at r4 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 96 at r4 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 161 at r4 (raw file): Previously, johlju (Johan Ljunggren) wrote…
I've removed all the Assert-MockVerifiable and replaced them with Assert-MockCalled ... I'd rather be consistent and just not call Assert-MockVerifiable at all. Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 177 at r4 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. I agree that a blank line after a block is better - but I sometimes forget 😁 Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 191 at r4 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 192 at r4 (raw file): Previously, johlju (Johan Ljunggren) wrote…
I've removed all the Verifiable Mocks and replaced them with Assert-MockCalled -Exactly... Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 240 at r4 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 255 at r4 (raw file): Previously, PlagueHO (Daniel Scott-Raynsford) wrote…
Done. Comments from Reviewable |
Review status: 28 of 38 files reviewed at latest revision, 56 unresolved discussions. Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 188 at r4 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 223 at r4 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 225 at r4 (raw file): Previously, johlju (Johan Ljunggren) wrote…
I've got rid of all the Verifiable Mocks and replaced them with -Exactly... Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 243 at r4 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done by removing all the Verifiable mocks. Comments from Reviewable |
@johlju - OK! All done now I think (hopefully). Thanks again for the great review and suggestions. I've done all but two that I didn't think should be done. Review status: 28 of 38 files reviewed at latest revision, 56 unresolved discussions. Tests/Unit/CertificateDsc.Common.Tests.ps1, line 190 at r4 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Good idea - and done. Except I've removed the Verifiable mocks and opted for -exactly mocks Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 152 at r4 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 234 at r4 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Comments from Reviewable |
Just a few comments now. :) Reviewed 2 of 11 files at r3, 10 of 10 files at r5. Tests/Integration/MSFT_xCertificateExport.Integration.Tests.ps1, line 26 at r4 (raw file): Previously, PlagueHO (Daniel Scott-Raynsford) wrote…
OK. Ah, I agree, did know it was part of the template. :) Tests/Integration/MSFT_xCertificateExport.Integration.Tests.ps1, line 34 at r4 (raw file): Previously, PlagueHO (Daniel Scott-Raynsford) wrote…
LGTM. No worries. I'm happy to review the extra files if it means it will be consistent. :) Tests/Unit/CertificateDsc.Common.Tests.ps1, line 190 at r4 (raw file): Previously, PlagueHO (Daniel Scott-Raynsford) wrote…
I can't see this file was changed. Did the file get lost in the push somehow? :) Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 161 at r4 (raw file): Previously, PlagueHO (Daniel Scott-Raynsford) wrote…
LGTM. Adding Assert-MockVerifiable to the bottom could be a way to catch mocks that has not been called (as long as the have Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 26 at r5 (raw file):
$env: Comments from Reviewable |
Ok! I think everything is done now! 😁 Review status: 36 of 38 files reviewed at latest revision, 3 unresolved discussions. Tests/Unit/CertificateDsc.Common.Tests.ps1, line 190 at r4 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Doh! Didn't press save! Saved now. Should be fully dynamic mocks now. Tests/Unit/MSFT_xCertificateExport.Tests.ps1, line 26 at r5 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Comments from Reviewable |
Just a tiny fix, then this is all good to me. 😄 Reviewed 2 of 11 files at r3, 2 of 2 files at r6. Tests/Integration/MSFT_xCertificateExport.Integration.Tests.ps1, line 38 at r4 (raw file): Previously, PlagueHO (Daniel Scott-Raynsford) wrote…
Maybe you could move this question to DscResources instead? So you can merge this. Tests/Unit/CertificateDsc.Common.Tests.ps1, line 197 at r6 (raw file):
Could you add a blank row between each switch-value-block? Comments from Reviewable |
Ok! Hopefully all ready to go now 😁 Review status: 37 of 38 files reviewed at latest revision, 2 unresolved discussions. Tests/Integration/MSFT_xCertificateExport.Integration.Tests.ps1, line 38 at r4 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done! Raised it here: Tests/Unit/CertificateDsc.Common.Tests.ps1, line 197 at r6 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Comments from Reviewable |
@PlagueHO Reviewable seems down for the moment, so can't review the last bits :/ I will do that as soon as the site is working again. |
Reviewed 1 of 11 files at r3, 1 of 1 files at r7. Comments from Reviewable |
Thank you so much @johlju Review status: all files reviewed at latest revision, all discussions resolved, all commit checks successful. Comments from Reviewable |
This PR primarily adds the xCertificateExport resource. It makes a few other structural changes to bring it inline with changes in xNetworking and the changes to move AppVeyor and other code to the DSCResource.Tests.
Fixes #41
Fixes
Change in detail:
Tagging @johlju
This change is