Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Earlier testing of parameter compatibility #20

Open
alx9r opened this issue Nov 26, 2016 · 1 comment
Open

Earlier testing of parameter compatibility #20

alx9r opened this issue Nov 26, 2016 · 1 comment
Labels

Comments

@alx9r
Copy link
Owner

alx9r commented Nov 26, 2016

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 alx9r added the Feature label Nov 26, 2016
@alx9r
Copy link
Owner Author

alx9r commented Aug 12, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant