dsccommunity / dsccommunity/ComputerManagementDsc

xScheduledTask: Unit Test does not perform correct Test

Open
#143 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug help wanted
Dominant language
PowerShell
Stars
338
Forks
80
PR merge metrics
No merged PRs in 30d

Description

Details of the scenario you tried and the problem that is occurring:
The unit test A built-in scheduled task exists and is enabled, but it should be disabled at
https://github.com/PowerShell/xComputerManagement/blob/dev/Tests/Unit/MSFT_xScheduledTask.Tests.ps1#L150
is incorrect. It is testing if the task is enabled, not disabled.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open Tests/Unit/MSFT_xScheduledTask.Tests.ps1 and inspect the test named “A built-in scheduled task exists and is enabled, but it should be disabled” around line 150. Check that the assertion tests the task's disabled state, then run the unit test to confirm it fails or passes for the intended condition.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
testing-qa
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.