-
-
Notifications
You must be signed in to change notification settings - Fork 272
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
Validate bind view parameters #796
Conversation
| Boolean $resolverstats = false, | ||
| Boolean $serverstats = true, | ||
| Boolean $zonemaintstats = true, | ||
| Array[Collectd::Bind::View] $views = [], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
custom datatype \o/
|
Hi @smortex, thanks for the patch! Can you add a unit test that verifies that this is now working (provide any valid data to $views) |
|
@bastelfreak done :-) I am neither satisfied by matching lines independently (multiple lines would match when using views) and matching multiple lines in a single test (not easily readable). If you have some advice/opinion regarding this, I would be happy to learn it! |
|
Ooops, rubocop is not configured to enforce trailing comas 😄 I might have missed a mail from Travis-CI… Fixed BTW! |
Pull Request (PR) description
This tiny Pull-Request add a custom type for validating the values passed to
$collectd::plugin::bind::views. Without this safety belt, you can end up with a useless (but surprisingly valid!) configuration file:This Pull Request (PR) fixes the following issues
n/a