dsccommunity / ActiveDirectoryDsc

This module contains DSC resources for deployment and configuration of Active Directory Domain Services.
MIT License
345 stars 142 forks source link

ADSRootKey: Resolved 'String was not recognized as a valid DateTime' in non-US cultures #703

Closed Borgquite closed 9 months ago

Borgquite commented 9 months ago

Pull Request (PR) description

Fix #702 where 'String was not recognised as a valid DateTime' can occur with non en-US cultures

This Pull Request (PR) fixes the following issues

Task list


This change is Reviewable

johlju commented 9 months ago

I fixed the test pipeline, it failed on an unrelated error. I seems a recent update to PS 7.4.1 on the build worker was not compatible with the unit tests. If you pull in changes from main the tests should not fail, at least not on that unrelated error. 🙂

codecov[bot] commented 9 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (131fb75) 98% compared to head (1f0feb9) 98%. Report is 2 commits behind head on main.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/dsccommunity/ActiveDirectoryDsc/pull/703/graphs/tree.svg?width=650&height=150&src=pr&token=p3P3tBCItu&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dsccommunity)](https://app.codecov.io/gh/dsccommunity/ActiveDirectoryDsc/pull/703?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dsccommunity) ```diff @@ Coverage Diff @@ ## main #703 +/- ## =================================== Coverage 98% 98% =================================== Files 25 25 Lines 3471 3471 =================================== Hits 3402 3402 Misses 69 69 ``` | [Files](https://app.codecov.io/gh/dsccommunity/ActiveDirectoryDsc/pull/703?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dsccommunity) | Coverage Δ | | |---|---|---| | [...urce/DSCResources/MSFT\_ADKDSKey/MSFT\_ADKDSKey.psm1](https://app.codecov.io/gh/dsccommunity/ActiveDirectoryDsc/pull/703?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dsccommunity#diff-c291cmNlL0RTQ1Jlc291cmNlcy9NU0ZUX0FES0RTS2V5L01TRlRfQURLRFNLZXkucHNtMQ==) | `100% <100%> (ø)` | | ... and [1 file with indirect coverage changes](https://app.codecov.io/gh/dsccommunity/ActiveDirectoryDsc/pull/703/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dsccommunity)
Borgquite commented 9 months ago

@johlju Ah, thank you. I saw the test error but couldn't work out for the life of me how my simple tweak was breaking the test - amazing coincidence that the issues was also in the ADSRootKey test! :D

johlju commented 9 months ago

@Borgquite thanks for this! It will release in a preview shortly, let me know that it works and I make a full release.

Borgquite commented 9 months ago

@johlju All looks good from here - good to release :)