dsccommunity / dsccommunity/ComputerManagementDsc

ScheduledTask: Add Test to cover 'StopExisting' value in MultipleInstances Parameter

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

Nobody has claimed this yet.

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

Description

The StopExisting value in the MultipleInstances parameter must be handled in a special way because it is missing from the ENUM used by the underlying cmdlets/objects.

We don't have unit tests that specifically cover the use of this, so either extract the handling into a function that can be mocked and/or add an integration test.

See https://github.com/dsccommunity/ComputerManagementDsc/pull/335

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

Start by reviewing PR #335 and the ScheduledTask handling of the MultipleInstances parameter, focusing on the special StopExisting value and its interaction with the underlying cmdlets or objects. Add focused coverage, either around an extracted mockable function or through an integration test, and confirm the StopExisting case is handled correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
operating-systems, testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.