PowerShell / DSC

This repo is for the DSC v3 project
MIT License
133 stars 22 forks source link

Enable `set` and `test` for Import resources #464

Closed SteveL-MSFT closed 2 weeks ago

SteveL-MSFT commented 2 weeks ago

PR Summary

This follows the PR to support Import kind resources by enabling set and test. As part of this change, the output for group resources should also address #266. Note that test is not complete yet as the engine currently just uses the input config as the desired state, but even after initial resolving of the include, that config still needs to have expressions invoked and parameters resolved for a valid comparison. That work will be addressed later.

As part of this change, the set group result and test group result now align with get which changes the schema.

A helper function was added for test to recursively determine if in desired state by looking for inDesiredState property and if any are false than not in desired state (I think this might address https://github.com/PowerShell/DSC/issues/284)

PR Context

Fix https://github.com/PowerShell/DSC/issues/266