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: Move MSFT_xADCommon helper functions #320

Merged
merged 11 commits into from
Jun 7, 2019

Conversation

johlju
Copy link
Member

@johlju johlju commented Jun 5, 2019

Pull Request (PR) description

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 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

- Move helper function from MSFT_xADCommon to the module
  xActiveDirectory.Common
@codecov-io
Copy link

codecov-io commented Jun 5, 2019

Codecov Report

Merging #320 into dev will decrease coverage by 1%.
The diff coverage is 86%.

Impacted file tree graph

@@         Coverage Diff         @@
##            dev   #320   +/-   ##
===================================
- Coverage    92%    91%   -2%     
===================================
  Files        20     19    -1     
  Lines      2307   2310    +3     
  Branches     10     10           
===================================
- Hits       2143   2115   -28     
- Misses      154    185   +31     
  Partials     10     10

@johlju johlju added the needs review The pull request needs a code review. label Jun 5, 2019
@johlju johlju added this to To do in All issues and PR's Jun 5, 2019
@johlju
Copy link
Member Author

johlju commented Jun 5, 2019

I have no clue why Pester is reporting misses, the missing rows are hit when run locally. 🤔 For example the entire Assert-Module function is not hit.

@johlju
Copy link
Member Author

johlju commented Jun 5, 2019

Rewrote the unit test for Assert-Module just to see if there any difference. I would be surprised if it was, just want to rule that out.

@johlju
Copy link
Member Author

johlju commented Jun 6, 2019

So the tests is run, but for some reason some of the rows in the xActiveDirectory.Common does not get hit. 🤔

@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 Jun 6, 2019
@johlju
Copy link
Member Author

johlju commented Jun 6, 2019

So the tests is run, but for some reason some of the rows in the xActiveDirectory.Common does not get hit.

It seems the culprit is the unit tests for xADUser. Narrowed it down so far, not sure yet what in those tests make this happen.

@johlju
Copy link
Member Author

johlju commented Jun 6, 2019

Added issue #325 to track the code coverage problem. Leaving it for now.

@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 Jun 6, 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.

:lgtm:

Reviewed 14 of 18 files at r1, 2 of 4 files at r2, 17 of 17 files at r4.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

@johlju johlju merged commit 44ca75e into dsccommunity:dev Jun 7, 2019
All issues and PR's automation moved this from To do to Done Jun 7, 2019
@johlju johlju removed the needs review The pull request needs a code review. label Jun 7, 2019
@johlju johlju deleted the cleanup-xADCommon branch July 22, 2019 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

xActiveDirectory: Move xADCommon to xActiveDirectory.Common.psm1
2 participants