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: Deprecate AdcsOcspExtension and Replace with AdcsAuthorityInformationAccess - Fixes #Issue 101 #104

Merged
merged 4 commits into from
Jan 25, 2020

Conversation

PlagueHO
Copy link
Member

@PlagueHO PlagueHO commented Nov 29, 2019

Pull Request (PR) description

This PR deprecates AdcsOcspExtension and replaces it with AdcsAuthorityInformationAccess. This is beacuse the AdcsOcspExtension resource used a pattern that could result in conflicting configurations. The AdcsAuthorityInformationAccess also includes the ability to set the AIA URIs as well as the OCSP URIs.

This Pull Request (PR) fixes the following issues

Task list

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

@X-Guardian - would you mind reviewing when you have a chance?


This change is Reviewable

@codecov
Copy link

codecov bot commented Nov 29, 2019

Codecov Report

Merging #104 into dev will decrease coverage by 2%.
The diff coverage is 87%.

Impacted file tree graph

@@        Coverage Diff         @@
##           dev   #104   +/-   ##
==================================
- Coverage   97%    94%   -3%     
==================================
  Files        8      8           
  Lines      641    700   +59     
==================================
+ Hits       626    664   +38     
- Misses      15     36   +21

@PlagueHO
Copy link
Member Author

@johlju - would you mind reviewing this when you have time?

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 26 of 26 files at r1, 2 of 2 files at r2.
Reviewable status: all files reviewed, 4 unresolved discussions (waiting on @PlagueHO)

a discussion (no related file):
Since it should be possible to remove a set value using $null we should have an example showing how that is done too.


a discussion (no related file):
We should have an integration tests that clears a set configuration, e.g clears OcspUri.



DSCResources/MSFT_AdcsCertificationAuthoritySettings/MSFT_AdcsCertificationAuthoritySettings.psm1, line 109 at r2 (raw file):

'Uint32'

UInt32 (upper-case 'I')


Modules/ActiveDirectoryCSDsc.Common/ActiveDirectoryCSDsc.Common.psm1, line 26 at r2 (raw file):

{ $_ -in $commonParameters }

Should be on separate rows.


Tests/Unit/ActiveDirectoryCSDsc.Common.Tests.ps1, line 436 at r2 (raw file):

-Be $true

-BeTrue (non-blocking)


Tests/Unit/ActiveDirectoryCSDsc.Common.Tests.ps1, line 475 at r2 (raw file):

-Be $false

-BeFalse (non-blocking)

@johlju johlju added the waiting for code fix A review left open comments, and the pull request is waiting for changes to be pushed by the author. label Dec 31, 2019
Copy link
Member Author

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

Reviewable status: all files reviewed, 4 unresolved discussions (waiting on @johlju)

a discussion (no related file):

Previously, johlju (Johan Ljunggren) wrote…

Since it should be possible to remove a set value using $null we should have an example showing how that is done too.

Done.


a discussion (no related file):

Previously, johlju (Johan Ljunggren) wrote…

We should have an integration tests that clears a set configuration, e.g clears OcspUri.

Done.



DSCResources/MSFT_AdcsCertificationAuthoritySettings/MSFT_AdcsCertificationAuthoritySettings.psm1, line 109 at r2 (raw file):

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

UInt32 (upper-case 'I')

Done.


Modules/ActiveDirectoryCSDsc.Common/ActiveDirectoryCSDsc.Common.psm1, line 26 at r2 (raw file):

Previously, johlju (Johan Ljunggren) wrote…
{ $_ -in $commonParameters }

Should be on separate rows.

Done.


Tests/Unit/ActiveDirectoryCSDsc.Common.Tests.ps1, line 436 at r2 (raw file):

Previously, johlju (Johan Ljunggren) wrote…
-Be $true

-BeTrue (non-blocking)

Done.


Tests/Unit/ActiveDirectoryCSDsc.Common.Tests.ps1, line 475 at r2 (raw file):

Previously, johlju (Johan Ljunggren) wrote…
-Be $false

-BeFalse (non-blocking)

Done.

Copy link
Member Author

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

Reviewable status: 24 of 34 files reviewed, 4 unresolved discussions (waiting on @johlju)

a discussion (no related file):

Previously, PlagueHO (Daniel Scott-Raynsford) wrote…

Done.

@johlju - I completely forgot about this one. I've made the changes so should be good to review again.


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:

Looks good! One more to merge. 😃

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

@johlju johlju added ready for merge The pull request was approved by the community and is ready to be merged by a maintainer. 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 Jan 25, 2020
@PlagueHO PlagueHO merged commit f0220b6 into dsccommunity:dev Jan 25, 2020
@PlagueHO PlagueHO deleted the Issue-101-Rebase branch January 25, 2020 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready for merge The pull request was approved by the community and is ready to be merged by a maintainer.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deprecate MSFT_AdcsOcspExtension and replace with MSFT_AdcsAuthorityInformationAccess
2 participants