Skip to content
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

Merged
merged 18 commits into from
Feb 17, 2019

Conversation

johlju
Copy link
Member

@johlju johlju commented Feb 8, 2019

Pull Request (PR) description

  • Changes to SqlServerDsc
    • Update integration tests to use the new integration test template.
  • Changes to SqlServiceAccount

This Pull Request (PR) fixes the following issues

Task list

  • Added an entry under the Unreleased section of the change log in the CHANGELOG.md.
    Entry should say what was changed, and how that affects users (if applicable).
  • Resource documentation added/updated in README.md.
  • Resource parameter descriptions added/updated in README.md, schema.mof
    and comment-based help.
  • Comment-based help added/updated.
  • Localization strings added/updated in all localization files as appropriate.
  • Examples appropriately added/updated.
  • Unit tests added/updated. See DSC Resource Testing Guidelines.
  • Integration tests added/updated (where possible). See DSC Resource Testing Guidelines.
  • New/changed code adheres to DSC Resource Style Guidelines and Best Practices.

This change is Reviewable

- 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).
@johlju johlju added the needs review The pull request needs a code review. label Feb 8, 2019
@johlju
Copy link
Member Author

johlju commented Feb 8, 2019

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-io
Copy link

Codecov Report

Merging #1278 into dev will increase coverage by <1%.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##            dev   #1278    +/-   ##
=====================================
+ Coverage    97%     97%   +<1%     
=====================================
  Files        35      35            
  Lines      4311    4323    +12     
=====================================
+ Hits       4208    4220    +12     
  Misses      103     103

Copy link
Member Author

@johlju johlju left a 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.

Copy link
Member Author

@johlju johlju left a 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

Copy link
Member Author

@johlju johlju left a 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: :shipit: complete! all files reviewed, all discussions resolved

Copy link
Member Author

@johlju johlju left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

@johlju johlju merged commit f95a360 into dsccommunity:dev Feb 17, 2019
@johlju johlju deleted the fix-new-integ-template branch March 6, 2019 17:13
@johlju johlju removed the needs review The pull request needs a code review. label Apr 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SqlServiceAccount: Expected Get-TargetResource to return 'DatabaseEngine' and 'SqlServerAgent'
2 participants