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

BREAKING CHANGE: SqlServerEndpoint: Added the property State #1535

Merged
merged 12 commits into from
May 13, 2020

Conversation

johlju
Copy link
Member

@johlju johlju commented May 8, 2020

Pull Request (PR) description

  • SqlServerEndpointState
  • SqlServerEndpoint
    • BREAKING CHANGE: A new required property EndpointType was added to
      support different types of endpoints in the future. For now the only
      endpoint type that is supported is the database mirror endpoint type
      (DatabaseMirroring).
    • Added the property State to be able to specify if the endpoint should
      be running, stopped, or disabled. This property was moved from the now
      deprecated DSC resource SqlServerEndpointState.
    • BREAKING CHANGE: Now the properties are only enforced if they are
      specified in the configuration.
  • CommonTestHelper
    • The test helper function New-SQLSelfSignedCertificate was changed
      to install the dependent module PSPKI through RequiredModules.psd1.

This Pull Request (PR) fixes the following issues

Task list

  • Added an entry to the change log under the Unreleased section of the
    file CHANGELOG.md. Entry should say what was changed and how that
    affects users (if applicable), and reference the issue being resolved
    (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 Community Testing Guidelines.
  • Integration tests added/updated (where possible). See DSC Community Testing Guidelines.
  • New/changed code adheres to DSC Community Style Guidelines.

This change is Reviewable

@johlju johlju added breaking change When used on an issue, the issue has been determined to be a breaking change. needs review The pull request needs a code review. labels May 8, 2020
@codecov
Copy link

codecov bot commented May 8, 2020

Codecov Report

Merging #1535 into master will decrease coverage by 0%.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff           @@
##           master   #1535   +/-   ##
======================================
- Coverage      98%     98%   -1%     
======================================
  Files          37      36    -1     
  Lines        5866    5830   -36     
======================================
- Hits         5758    5722   -36     
  Misses        108     108           

@johlju johlju force-pushed the f/remove-SqlServerEndpointState branch from dc19ba6 to b1f59d8 Compare May 9, 2020 12:50
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: 0 of 25 files reviewed, 1 unresolved discussion


CHANGELOG.md, line 13 at r1 (raw file):

Removed resource _SqlServerEndpointState_

We should just deprecate the resource like SqlServerNetwork.

@johlju johlju added waiting for code fix A review left open comments, and the pull request is waiting for changes to be pushed by the author. and removed needs review The pull request needs a code review. labels May 11, 2020
@johlju johlju force-pushed the f/remove-SqlServerEndpointState branch from 180c94f to a925193 Compare May 12, 2020 08:52
@johlju johlju added needs review The pull request needs a code review. and removed waiting for code fix A review left open comments, and the pull request is waiting for changes to be pushed by the author. labels May 12, 2020
@johlju johlju force-pushed the f/remove-SqlServerEndpointState branch from fcf75a7 to b73a2ba Compare May 12, 2020 17:47
@johlju johlju force-pushed the f/remove-SqlServerEndpointState branch from 637e0ee to d3119a9 Compare May 12, 2020 20:04
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 1 of 25 files at r1, 1 of 10 files at r2.
Reviewable status: 2 of 30 files reviewed, all discussions resolved


CHANGELOG.md, line 13 at r1 (raw file):

Previously, johlju (Johan Ljunggren) wrote…
Removed resource _SqlServerEndpointState_

We should just deprecate the resource like SqlServerNetwork.

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 19 of 25 files at r1, 9 of 10 files at r2.
Reviewable status: all files reviewed, 2 unresolved discussions


source/SqlServerDsc.psd1, line 63 at r2 (raw file):

        'SqlServerEndpointState'
.        ...
        'SqlServerNetwork'

These should not be removed.


tests/Integration/DSC_SqlServerEndPoint.config.ps1, line 54 at r2 (raw file):

            Owner                = $Node.Owner
            State                = 'Started'

Should rename file, wrongly renamed back again to EndPoint instead of Endpoint.

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: 27 of 29 files reviewed, all discussions resolved (waiting on @johlju)


source/SqlServerDsc.psd1, line 63 at r2 (raw file):

Previously, johlju (Johan Ljunggren) wrote…
        'SqlServerEndpointState'
.        ...
        'SqlServerNetwork'

These should not be removed.

Done


tests/Integration/DSC_SqlServerEndPoint.config.ps1, line 54 at r2 (raw file):

Previously, johlju (Johan Ljunggren) wrote…

Should rename file, wrongly renamed back again to EndPoint instead of Endpoint.

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.

:lgtm:

Reviewed 3 of 3 files at r3.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

@johlju johlju merged commit 4c0dcc6 into dsccommunity:master May 13, 2020
@johlju johlju deleted the f/remove-SqlServerEndpointState branch May 13, 2020 18:03
@johlju johlju removed the needs review The pull request needs a code review. label May 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change When used on an issue, the issue has been determined to be a breaking change.
Projects
None yet
1 participant