A configuration set operation will now call delete on a resource (if it supports it) if _exist = false is one of the properties and the resource doesn't have the SetHandlesExist capability.
If the resource has the SetHandlesExist capability, then it will get the raw properties
Updated Test/Exist resource to better validate case that _exist is passed through
Added Test/Delete resource to validate delete gets called
Group/Adapter resources are not supported for the delete path as all resources would need to support delete (you'll get an error message if the resource returns a group response).
Since delete is a synthetic set with _exist, had to write code to convert the get response into a set response
Added synthetic test during configuration set operation if the resource doesn't directly implement it
PR Summary
delete
on a resource (if it supports it) if_exist = false
is one of the properties and the resource doesn't have theSetHandlesExist
capability.SetHandlesExist
capability, then it will get the raw propertiesTest/Exist
resource to better validate case that_exist
is passed throughTest/Delete
resource to validatedelete
gets calleddelete
path as all resources would need to supportdelete
(you'll get an error message if the resource returns a group response).delete
is a syntheticset
with_exist
, had to write code to convert theget
response into aset
responsetest
during configurationset
operation if the resource doesn't directly implement itPR Context
Fix https://github.com/PowerShell/DSC/issues/290