-
Notifications
You must be signed in to change notification settings - Fork 225
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
xSQLServerScript: Changes to the resource and tests #280
Conversation
34b915d
to
2ca5ca7
Compare
All of the $null is now on the left side of equality comparisons. All credential parameters now also has the type [System.Management.Automation.Credential()] to work with PowerShell 4.0.
It is now possible to configure two instances on the same node, with the same script.
Added to the description text for the parameter 'Credential' describing how to authenticate using Windows Authentication. Added examples to show how to authenticate using either SQL or Windows authentication.
Made changes according to the remaining review comments in PR dsccommunity#156
Added a note in README.md for xSQLServerScript that there is a known problem running the resource using PowerShell 4.0.
2ca5ca7
to
27751ba
Compare
Reviewed 8 of 8 files at r1. CHANGELOG.md, line 22 at r1 (raw file):
Add here that there are a known problem running this in PowerShell 5.0 and README.md has been updated to address that. DSCResources/MSFT_xSQLServerScript/MSFT_xSQLServerScript.psm1, line 83 at r1 (raw file):
Blank spaces here DSCResources/MSFT_xSQLServerScript/MSFT_xSQLServerScript.psm1, line 138 at r1 (raw file):
Blank spaces here DSCResources/MSFT_xSQLServerScript/MSFT_xSQLServerScript.psm1, line 211 at r1 (raw file):
Blank spaces here DSCResources/MSFT_xSQLServerScript/MSFT_xSQLServerScript.schema.mof, line 4 at r1 (raw file):
For the default instance DSCResources/MSFT_xSQLServerScript/MSFT_xSQLServerScript.schema.mof, line 5 at r1 (raw file):
Please align these with README.md and comment-based help Examples/Resources/xSQLServerScript/1-RunScriptUsingSQLAuthentication.ps1, line 13 at r1 (raw file):
Blank spaces Examples/Resources/xSQLServerScript/2-RunScriptUsingWindowsAuthentication.ps1, line 14 at r1 (raw file):
Blank spaces Tests/Unit/MSFT_xSQLServerScript.Tests.ps1, line 138 at r1 (raw file):
Blank spaces Tests/Unit/MSFT_xSQLServerScript.Tests.ps1, line 184 at r1 (raw file):
Blank spaces Comments from Reviewable |
Reviewed 6 of 7 files at r2, 1 of 1 files at r3. CHANGELOG.md, line 22 at r1 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Should have been 'PowerShell 4.0' in previous comment. Done. DSCResources/MSFT_xSQLServerScript/MSFT_xSQLServerScript.psm1, line 83 at r1 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. DSCResources/MSFT_xSQLServerScript/MSFT_xSQLServerScript.psm1, line 138 at r1 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. DSCResources/MSFT_xSQLServerScript/MSFT_xSQLServerScript.psm1, line 211 at r1 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. DSCResources/MSFT_xSQLServerScript/MSFT_xSQLServerScript.psm1, line 242 at r3 (raw file):
Typo here 'assign'. Same in schema and README, and comment-based help. Examples/Resources/xSQLServerScript/1-RunScriptUsingSQLAuthentication.ps1, line 13 at r1 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Tests/Unit/MSFT_xSQLServerScript.Tests.ps1, line 138 at r1 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Tests/Unit/MSFT_xSQLServerScript.Tests.ps1, line 184 at r1 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Comments from Reviewable |
If there are no more comments on this one in a day or so, I will merge it. Feel free to review this one. Reviewed 3 of 3 files at r4. Comments from Reviewable |
This Pull Request (PR) fixes the following issues:
Fixes #266
Fixes #272
Fixes #273
Fixes #274
This change is