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

xActiveDirectory: Add common modules #258

Merged
merged 4 commits into from
Apr 26, 2019

Conversation

johlju
Copy link
Member

@johlju johlju commented Apr 26, 2019

Pull Request (PR) description

  • Changes to xActiveDirectory
    • Added localization module DscResource.LocalizationHelper containing
      the helper functions Get-LocalizedData, New-InvalidArgumentException,
      New-InvalidOperationException, New-ObjectNotFoundException, and
      New-InvalidResultException (issue #257).
      For more information around these helper functions and localization
      in resources, see Localization section in the Style Guideline.
    • Added common module DscResource.Common containing the helper function
      Test-DscParameterState. The goal is that all resource common functions
      are moved to this module (functions that are or can be used by more
      than one resource) (issue #257).
  • Changes to xADReplicationSiteLink
    • Make use of the new localization helper functions.

This Pull Request (PR) fixes the following issues

Task list

  • Added an entry under the Unreleased section of the change log in the README.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

- Added localization module DscResource.LocalizationHelper containing
  the helper functions Get-LocalizedData, New-InvalidArgumentException,
  New-InvalidOperationException, New-ObjectNotFoundException, and
  New-InvalidResultException (issue dsccommunity#257).
- Added common module DscResource.Common containing the helper function
  Test-DscParameterState. The goal is that all resource common functions
  are moved to this module (functions that are or can be used by more
  than one resource) (issue dsccommunity#257).
- Make use of the new localization helper functions.
@johlju johlju added the needs review The pull request needs a code review. label Apr 26, 2019
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 9 of 9 files at r1.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

@codecov-io
Copy link

Codecov Report

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

Impacted file tree graph

@@         Coverage Diff          @@
##            dev   #258    +/-   ##
====================================
+ Coverage    86%    87%   +<1%     
====================================
  Files        19     20     +1     
  Lines      1741   1852   +111     
  Branches     11     11            
====================================
+ Hits       1513   1624   +111     
  Misses      217    217            
  Partials     11     11

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 c52ca33 into dsccommunity:dev Apr 26, 2019
@kwirkykat kwirkykat removed the needs review The pull request needs a code review. label Apr 26, 2019
@johlju johlju deleted the add-common-modules branch April 26, 2019 07:07
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.

DSCResource Template Modules are missing
3 participants