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: WaitForADDomain: Refactored the resource to handle timeout better #455

Merged
merged 16 commits into from
Aug 2, 2019

Conversation

johlju
Copy link
Member

@johlju johlju commented Aug 1, 2019

Pull Request (PR) description

  • Changes to ActiveDirectoryDsc
    • The helper function Find-DomainController is exported in the module
      manifest. When running Import-Module -Name ActiveDirectoryDsc the
      module will also import the nested module ActiveDirectoryDsc.Common.
      It is exported so that the resource WaitForADDomain can reuse code
      when running a background job to search for a domain controller.
    • Changes to ActiveDirectoryDsc.Common:
      • Added function Find-DomainController.
      • Added function Get-CurrentUser (moved from the resource ADKDSKey).
  • Changes to WaitForADDomain
    • BREAKING CHANGE: Refactored the resource to handle timeout better and
      more correctly wait for a specific amount of time, and at the same time
      make the resource more intuitive to use. This change has replaced
      parameters in the resource (issue #343).
    • Now the resource can use built-in PsDscRunAsCredential instead of
      specifying the Credential parameter (issue #367).
    • New parameter SiteName can be used to wait for a domain controller
      in a specific site in the domain.

This Pull Request (PR) fixes the following issues

Task list

  • Added an entry under the Unreleased section in the CHANGELOG.md.
    Entry should say what was changed, and how that affects users (if applicable).
  • Resource documentation added/updated in resource directory README.md.
  • Resource parameter descriptions added/updated in 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

johlju added 11 commits July 30, 2019 18:21
- Added function `Find-DomainController`.
- Added function `Get-CurrentUser` (moved from the resource ADKDSKey).
- BREAKING CHANGE: Refactored the resource to handle timeout better and
  more correctly wait for a specific amount, and at the same time make
  the resource more intuitive to use. This change has replaced parameters
  in the resource (issue dsccommunity#343).
- Now the resource can use built-in `PsDscRunAsCredential` instead of
  specifying the `Credential` parameter (issue dsccommunity#367).
- New parameter `SiteName` can be used to wait for a domain controller
  in a specific site in the domain.
@johlju johlju changed the title Fix wait for ad domain BREAKING CHANGE: WaitForADDomain: Refactored the resource to handle timeout better Aug 1, 2019
@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 Aug 1, 2019
@codecov-io
Copy link

Codecov Report

Merging #455 into dev will increase coverage by <1%.
The diff coverage is 98%.

Impacted file tree graph

@@         Coverage Diff          @@
##            dev   #455    +/-   ##
====================================
+ Coverage    97%    98%   +<1%     
====================================
  Files        20     20            
  Lines      2703   2809   +106     
  Branches     10     10            
====================================
+ Hits       2645   2761   +116     
+ Misses       48     38    -10     
  Partials     10     10

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 23 of 23 files at r1, 7 of 7 files at r2.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

@johlju johlju removed the needs review The pull request needs a code review. label Aug 2, 2019
@johlju johlju merged commit 3efea91 into dsccommunity:dev Aug 2, 2019
@johlju johlju deleted the fix-WaitForADDomain branch August 2, 2019 14:15
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
2 participants