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

xADUser: Add Additional Parameters #373

Merged
merged 3 commits into from
Jun 16, 2019
Merged

xADUser: Add Additional Parameters #373

merged 3 commits into from
Jun 16, 2019

Conversation

X-Guardian
Copy link
Contributor

@X-Guardian X-Guardian commented Jun 14, 2019

Pull Request (PR) description

This PR adds the following parameters to the xADUser resource:

  • AccountNotDelegated
  • AllowReversiblePasswordEncryption
  • CompoundIdentitySupported
  • PasswordNotRequired
  • SmartcardLogonRequired
  • LogonWorkstations
  • Organization
  • OtherName

These are all the remaining String and Boolean parameters available in the New/Get/Set-ADUser PowerShell cmdlets.

This Pull Request (PR) partly fixes the following issues

None

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

@codecov-io
Copy link

codecov-io commented Jun 14, 2019

Codecov Report

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

Impacted file tree graph

@@         Coverage Diff          @@
##            dev   #373    +/-   ##
====================================
+ Coverage    92%    92%   +<1%     
====================================
  Files        20     20            
  Lines      2512   2531    +19     
  Branches     10     10            
====================================
+ Hits       2313   2333    +20     
+ Misses      189    188     -1     
  Partials     10     10

@X-Guardian X-Guardian marked this pull request as ready for review June 14, 2019 20:37
@johlju johlju added the needs review The pull request needs a code review. label Jun 15, 2019
@johlju
Copy link
Member

johlju commented Jun 15, 2019

@X-Guardian Can you please look at rebasing this, you got a lot of files that has already been merged (see for example commit ec1f69e).

@johlju johlju added waiting for author response The pull request is waiting for the author to respond to comments in the pull request. and removed needs review The pull request needs a code review. labels Jun 15, 2019
@X-Guardian
Copy link
Contributor Author

Done. (forgot to force push)

@johlju johlju added needs review The pull request needs a code review. and removed waiting for author response The pull request is waiting for the author to respond to comments in the pull request. labels Jun 15, 2019
Copy link
Member

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

Looks good. I will wait for you to rebase until merging.

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

@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 16, 2019
@X-Guardian
Copy link
Contributor Author

Did you see my message on #371. Shall we get that sorted first?

@johlju
Copy link
Member

johlju commented Jun 16, 2019

Yes I saw that comment after I reviewed this PR (lot of community e-mails in the backlog :) )
It does not matter what order we merge, merge this or merge a new PR that fixes the issue in #371.
Work on the one you want to merge first :)

@johlju
Copy link
Member

johlju commented Jun 16, 2019

Merged the other one, and I added latest changes to this PR.

@X-Guardian
Copy link
Contributor Author

This one could do with another test. Hang fire on merging till I add it.

Copy link
Member

@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 2 of 3 files at r2, 1 of 1 files at r3.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @X-Guardian)


Tests/Unit/MSFT_xADUser.Tests.ps1, line 68 at r3 (raw file):

'ChangePasswordAtLogon'

I think this property was wrongly removed from $testBooleanProperties?

@johlju
Copy link
Member

johlju commented Jun 16, 2019

@X-Guardian ah, then make sure to rebase in latest changes to your PR and force push so this matches your local branch (since I asked GitHub GUI to merge in dev-branch). 😃

Copy link
Contributor Author

@X-Guardian X-Guardian 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: all files reviewed, 1 unresolved discussion (waiting on @johlju)


Tests/Unit/MSFT_xADUser.Tests.ps1, line 68 at r3 (raw file):

Previously, johlju (Johan Ljunggren) wrote…
'ChangePasswordAtLogon'

I think this property was wrongly removed from $testBooleanProperties?

Yep, I've added it back.

@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 16, 2019
Copy link
Member

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

@johlju johlju merged commit ccf3575 into dsccommunity:dev Jun 16, 2019
@johlju johlju removed the needs review The pull request needs a code review. label Jun 16, 2019
@X-Guardian X-Guardian deleted the xADUser-MissingParameters-Add branch June 18, 2019 22:01
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.

3 participants