HyperVDsc icon indicating copy to clipboard operation
HyperVDsc copied to clipboard

VMHyperV: Get-TargetResource output is not schema compliant

Open bgelens opened this issue 7 years ago • 0 comments

Get-TargetResource will throw as the hashtable doesn't contain all required keys. Maybe some other issues as well (need to investigate some more). Also, need to setup integration test for this resource in which Get-TargetResource can be called successfully (at least someone coding and testing on local machine would be made aware of it)

An alternative would be to have a unit test that validates that all (and none extra) keys are in the hashtable returned by Get-TargetResource compared to what is present in the schema. This would be a super useful test for any resource to have! Thanks @rchaganti for the idea :)

bgelens avatar Jun 13 '17 06:06 bgelens