Earlier testing of parameter compatibility
Opened this issue · 1 comments
alx9r commented
Currently parameters specified in configuration documents are not checked for compatibility with the corresponding resource if and when the resource is invoked. Basic checking for parameter compatibility should be performed when the parameters are bound to the resource. That way parameter errors in configuration documents are detected as early as possible.
alx9r commented
This example invokes ConfigInstructions
with a bogus parameter:
ConfigInstructions this_should_throw {
Get-DscResource TestStub ZeroDsc | Import-DscResource
TestStub bogus_param @{
Key = 'some key'
Bogus = 'bogus'
}
}
It should throw an exception but does not.