-
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
SqlServerDsc: Clean up integration tests using latest template #1278
Conversation
- Now the correct service type string value is returned by the function `Get-TargetResource`. Previously one value was passed in as a parameter (e.g. `DatabaseEngine`), but a different string value as returned (e.g. `SqlServer`). Now `Get-TargetResource` return the same values that can be passed as values in the parameter `ServiceType` (issue dsccommunity#981).
After this PR I can finally continue with new integration test for the other resource, now when there is finally space (time wise) for running more integration tests. |
Codecov Report
@@ Coverage Diff @@
## dev #1278 +/- ##
=====================================
+ Coverage 97% 97% +<1%
=====================================
Files 35 35
Lines 4311 4323 +12
=====================================
+ Hits 4208 4220 +12
Misses 103 103 |
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.
Reviewed 65 of 65 files at r1.
Reviewable status: all files reviewed, 3 unresolved discussions
Tests/Integration/MSFT_SqlServerNetwork.config.ps1, line 39 at r1 (raw file):
} Configuration MSFT_SqlServerNetwork_SetDisabled_Config
We should have comment-based help here.
Tests/Integration/MSFT_SqlServerSecureConnection.config.ps1, line 34 at r1 (raw file):
} Configuration MSFT_SqlServerSecureConnection_AddSecureConnection_Config
We should have comment-based help here.
Tests/Integration/MSFT_SqlSetup.config.ps1, line 124 at r1 (raw file):
(ConvertTo-SecureString -String $ConfigurationData.AllNodes.SqlAgentServiceSecondaryAccountPassword -AsPlainText -Force)) Configuration MSFT_SqlSetup_CreateDependencies_Config
We should have comment-based help here.
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.
Reviewable status: 62 of 65 files reviewed, 1 unresolved discussion (waiting on @johlju)
Tests/Integration/MSFT_SqlServerNetwork.config.ps1, line 39 at r1 (raw file):
Previously, johlju (Johan Ljunggren) wrote…
We should have comment-based help here.
Done
Tests/Integration/MSFT_SqlServerSecureConnection.config.ps1, line 34 at r1 (raw file):
Previously, johlju (Johan Ljunggren) wrote…
We should have comment-based help here.
Done
Tests/Integration/MSFT_SqlSetup.config.ps1, line 124 at r1 (raw file):
Previously, johlju (Johan Ljunggren) wrote…
We should have comment-based help here.
Done
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.
Reviewed 3 of 3 files at r2.
Reviewable status: complete! all files reviewed, all discussions resolved
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.
Reviewable status: complete! all files reviewed, all discussions resolved
Pull Request (PR) description
Get-TargetResource
. Previously one value was passed in as a parameter(e.g.
DatabaseEngine
), but a different string value as returned(e.g.
SqlServer
). NowGet-TargetResource
return the same valuesthat can be passed as values in the parameter
ServiceType
(issue SqlServiceAccount: Expected Get-TargetResource to return 'DatabaseEngine' and 'SqlServerAgent' #981).This Pull Request (PR) fixes the following issues
Task list
Entry should say what was changed, and how that affects users (if applicable).
and comment-based help.
This change is