You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make sure you are able to repro it on the latest version
Search the existing issues.
Steps to reproduce
When using the DSC/AssertionGroup with the dsc config test command, I expect that the resource group is considered to be in the desired state when all instances in the group are in the desired state.
However, the resource group returns inDesiredState as false and lists the resources property in the differingProperties result field.
Define the following configuration on a 64-bit system as repro.dsc.config.yaml:
Name Value
---------
PSVersion 7.3.6
PSEdition Core
GitCommitId 7.3.6
OS Microsoft Windows 10.0.22621
Platform Win32NT
PSCompatibleVersions {1.0,2.0,3.0,4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Version
Latest build from main
Visuals
No response
The text was updated successfully, but these errors were encountered:
The intent of the AssertionGroup is to test some requirements before proceeding with the rest of the configuration. Due to this nature, it internally always calls test and returns a configuration test result. So the naive configuration comparison will see that the result doesn't match. So the code could be changed to look to see if the config test result has inDesiredState = true and skip the comparison altogether, but then it's a bit inconsistent for anyone looking at the resulting JSON. Is there a more complete example where the current behavior will fail unexpectedly?
Prerequisites
Steps to reproduce
When using the
DSC/AssertionGroup
with thedsc config test
command, I expect that the resource group is considered to be in the desired state when all instances in the group are in the desired state.However, the resource group returns
inDesiredState
asfalse
and lists theresources
property in thedifferingProperties
result field.Define the following configuration on a 64-bit system as
repro.dsc.config.yaml
:Expected behavior
Actual behavior
Error details
No response
Environment data
Version
Latest build from main
Visuals
No response
The text was updated successfully, but these errors were encountered: