-
Notifications
You must be signed in to change notification settings - Fork 81
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: xScheduledTask: Add support for disabling built-in tasks - Fixes #74 #132
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #132 +/- ##
===================================
+ Coverage 88% 89% +<1%
===================================
Files 5 5
Lines 630 638 +8
===================================
+ Hits 560 568 +8
Misses 70 70 |
Reviewed 8 of 9 files at r1, 1 of 1 files at r2. DSCResources/MSFT_xScheduledTask/MSFT_xScheduledTask.psm1, line 1627 at r2 (raw file):
Should this always output verbose messages even when user has not asked for it? Examples/xScheduledTask/11-DisableABuiltInTask.ps1, line 17 at r2 (raw file):
This parameter is not used. Examples/xScheduledTask/12-DeleteABuiltInTask.ps1, line 17 at r2 (raw file):
This parameter is not used. Tests/Unit/MSFT_xScheduledTask.Tests.ps1, line 40 at r2 (raw file):
Parenthesis on the next row. Tests/Unit/MSFT_xScheduledTask.Tests.ps1, line 41 at r2 (raw file):
Should have [Parameter()] on this too. Tests/Unit/MSFT_xScheduledTask.Tests.ps1, line 154 at r2 (raw file):
Should have Comments from Reviewable |
All done @johlju - plus I found a couple of other style issues in the Unit tests - so fixed those. Review status: 5 of 9 files reviewed at latest revision, 6 unresolved discussions. DSCResources/MSFT_xScheduledTask/MSFT_xScheduledTask.psm1, line 1627 at r2 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Doh! Good catch - I enabled this while doing some debugging. Examples/xScheduledTask/11-DisableABuiltInTask.ps1, line 17 at r2 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Examples/xScheduledTask/12-DeleteABuiltInTask.ps1, line 17 at r2 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Tests/Unit/MSFT_xScheduledTask.Tests.ps1, line 40 at r2 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Tests/Unit/MSFT_xScheduledTask.Tests.ps1, line 41 at r2 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Tests/Unit/MSFT_xScheduledTask.Tests.ps1, line 154 at r2 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Comments from Reviewable |
Reviewed 4 of 4 files at r3. Comments from Reviewable |
Pull Request (PR) description
Get-TargetResource
no longer outputsActionExecutable
andScheduleType
properties when the scheduledtask does not exist. It will also include
TaskPath
in output whenscheduled task does not exist.
This Pull Request (PR) fixes the following issues:
Task list:
@johlju - as always would you be able to review for me? I cleaned up the unit tests hashtable layouts because I figured you'd pick up on the incorrect style 😁 - so sorry about the large number of style corrections in the unit tests file.
This change is