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: Use fully qualified type names #385

Merged
merged 5 commits into from
Jun 21, 2019

Conversation

johlju
Copy link
Member

@johlju johlju commented Jun 19, 2019

Pull Request (PR) description

Also updated the examples a bit, that should already be covered by another change log entry.

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 johlju added the needs review The pull request needs a code review. label Jun 19, 2019
@codecov-io
Copy link

codecov-io commented Jun 19, 2019

Codecov Report

Merging #385 into dev will not change coverage.
The diff coverage is 83%.

Impacted file tree graph

@@         Coverage Diff         @@
##            dev   #385   +/-   ##
===================================
  Coverage    92%    92%           
===================================
  Files        20     20           
  Lines      2530   2530           
  Branches     10     10           
===================================
  Hits       2335   2335           
  Misses      185    185           
  Partials     10     10

@johlju
Copy link
Member Author

johlju commented Jun 19, 2019

@PlagueHO Could you review this when you have time. A lot of files, but I think this one will be easy reviewed anyway. 🙂

@PlagueHO
Copy link
Member

Of course @johlju - I'm on it.

Copy link
Member

@PlagueHO PlagueHO left a comment

Choose a reason for hiding this comment

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

Just a couple of minor tweaks. But awesome job!

Reviewed 43 of 44 files at r1, 2 of 2 files at r2.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @johlju)


Examples/Resources/xADUser/1-CreateUserAndManagePassword_Config.ps1, line 43 at r2 (raw file):

        {
            Ensure     = 'Present'
            UserName   = "ExampleUser"

Strings should be single quoted (and next few).


Examples/Resources/xADUser/2-CreateUserAndIgnorePasswordChanges_Config.ps1, line 44 at r2 (raw file):

        {
            Ensure              = 'Present'
            UserName            = "ExampleUser"

Strings should be single quoted (and next few).


Tests/Unit/MSFT_xADGroup.Tests.ps1, line 450 at r2 (raw file):

                Mock -CommandName Get-DomainName -MockWith {return 'contoso.com'}
                Mock -CommandName Get-ADDomainNameFromDistinguishedName -MockWith {
                    param (

( should be on next line

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.

I formatted the parameters of some stub functions. I did not add [Parameter()] to them on purpose, I would rather we solved having a module with stubs so they could be removed entirely.

Reviewable status: 40 of 50 files reviewed, 3 unresolved discussions (waiting on @PlagueHO)


Examples/Resources/xADUser/1-CreateUserAndManagePassword_Config.ps1, line 43 at r2 (raw file):

Previously, PlagueHO (Daniel Scott-Raynsford) wrote…

Strings should be single quoted (and next few).

Done.


Examples/Resources/xADUser/2-CreateUserAndIgnorePasswordChanges_Config.ps1, line 44 at r2 (raw file):

Previously, PlagueHO (Daniel Scott-Raynsford) wrote…

Strings should be single quoted (and next few).

Done.


Tests/Unit/MSFT_xADGroup.Tests.ps1, line 450 at r2 (raw file):

Previously, PlagueHO (Daniel Scott-Raynsford) wrote…

( should be on next line

Done. Fix all in the repo.

Copy link
Member

@PlagueHO PlagueHO 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 10 of 10 files at r3.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

@johlju johlju merged commit 727474a into dsccommunity:dev Jun 21, 2019
@johlju
Copy link
Member Author

johlju commented Jun 21, 2019

@PlagueHO Thanks for the review! This one is starting to get closer and closer for a rename.

@johlju johlju deleted the fix-types branch June 21, 2019 09:03
@johlju johlju removed the needs review The pull request needs a code review. label Jun 21, 2019
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.

xActiveDirectory: Use fully qualified type names for parameters and variables
3 participants