Skip to content

Assertion not breaking when dependsOn is specified #731

@Gijsreyn

Description

@Gijsreyn

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest version
  • Search the existing issues.

Summary

As per discussion #725, grabbing the example from: https://github.com/PowerShell/DSC/blob/main/dsc/examples/assertion.dsc.yaml doesn't work.

Steps to reproduce

  1. Create the configuration document from: https://github.com/PowerShell/DSC/blob/main/dsc/examples/assertion.dsc.yaml
  2. Run dsc config set --file assertion.dsc.yaml

Expected behavior

Expect `current user registry` resource not to run

Actual behavior

`current user registry` runs

Error details

None

Environment data

Name                           Value
----                           -----
PSVersion                      7.4.7
PSEdition                      Core
GitCommitId                    7.4.7
OS                             Microsoft Windows 10.0.19045
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Version

3.0.0

Visuals

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions