-
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
xSQLServerHelper: Create helper function Test-ClusterPermissions #830
xSQLServerHelper: Create helper function Test-ClusterPermissions #830
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #830 +/- ##
===================================
- Coverage 96% 96% -1%
===================================
Files 31 31
Lines 3316 3301 -15
===================================
- Hits 3199 3184 -15
Misses 117 117 |
…oupReplica resource
Man, your did some complex refactor of the tests here! 😄 Awesome work on the test cases! Very clean code! Reviewed 6 of 8 files at r1, 3 of 3 files at r2. CHANGELOG.md, line 26 at r2 (raw file):
Move the full stop ('.') to the end of the text (after the parenthesis). xSQLServerHelper.psm1, line 1199 at r2 (raw file):
This function (with the verb 'Test') should have and output type of System.Boolean and return $true if the cluster permission exist, or $false if they don't. xSQLServerHelper.psm1, line 1236 at r2 (raw file):
This must be localized as well. I think it is better to have two different localized strings instead. xSQLServerHelper.psm1, line 1236 at r2 (raw file):
For all xSQLServerHelper.psm1, line 1252 at r2 (raw file):
This must be localized as well. xSQLServerHelper.psm1, line 1267 at r2 (raw file):
Add an else here to write a verbose message saying that the correct permission was found for account X? Tests/Unit/MSFT_xSQLServerAlwaysOnAvailabilityGroup.Tests.ps1, line 27 at r2 (raw file):
Please remove the extra indent inside the regions. Throughout. Tests/Unit/MSFT_xSQLServerAlwaysOnAvailabilityGroup.Tests.ps1, line 382 at r2 (raw file):
Missing space after equal sign. Throughout. Tests/Unit/MSFT_xSQLServerAlwaysOnAvailabilityGroup.Tests.ps1, line 466 at r2 (raw file):
Please change so braces are not on the same row. For both Mock and Assert-MockCalled. Throughout. Tests/Unit/xSQLServerHelper.Tests.ps1, line 1536 at r2 (raw file):
Please write this more readable
Throughout. Tests/Unit/xSQLServerHelper.Tests.ps1, line 1542 at r2 (raw file):
New row before this one. Tests/Unit/xSQLServerHelper.Tests.ps1, line 1548 at r2 (raw file):
This seems to work, but this should use named parameters. I think this is the more correct way?
Throughout. Tests/Unit/xSQLServerHelper.Tests.ps1, line 1564 at r2 (raw file):
make this more readable. Throughout.
Comments from Reviewable |
Updated the return value for Test-ClusterPermissions
Thanks! It was really bothering me that I couldn't "easily" update the tests with the minor change that occurred. Now it should be a little easier! :) Review status: 4 of 9 files reviewed at latest revision, 14 unresolved discussions. CHANGELOG.md, line 26 at r2 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. xSQLServerHelper.psm1, line 1199 at r2 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. xSQLServerHelper.psm1, line 1236 at r2 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. xSQLServerHelper.psm1, line 1236 at r2 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. xSQLServerHelper.psm1, line 1252 at r2 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. xSQLServerHelper.psm1, line 1267 at r2 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Tests/Unit/MSFT_xSQLServerAlwaysOnAvailabilityGroup.Tests.ps1, line 27 at r2 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Tests/Unit/MSFT_xSQLServerAlwaysOnAvailabilityGroup.Tests.ps1, line 382 at r2 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Tests/Unit/MSFT_xSQLServerAlwaysOnAvailabilityGroup.Tests.ps1, line 466 at r2 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Tests/Unit/xSQLServerHelper.Tests.ps1, line 1536 at r2 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Tests/Unit/xSQLServerHelper.Tests.ps1, line 1542 at r2 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Tests/Unit/xSQLServerHelper.Tests.ps1, line 1548 at r2 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Tests/Unit/xSQLServerHelper.Tests.ps1, line 1564 at r2 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Comments from Reviewable |
Awesome work! Reviewed 5 of 5 files at r3. Comments from Reviewable |
Pull Request (PR) description
This Pull Request (PR) fixes the following issues:
Fixes #446
Task list:
This change is