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
matcher for less-restrictive comparison #318
Conversation
|
||
its('log_format') { should cmp 'raw' } | ||
its('max_log_file') { should cmp 6 } | ||
|
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.
Could we establish cmp as the default matcher instead of eq for auditd_conf? Since the resource would be perfect for that! (i.e. just swap with eq + love the explanation!)
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.
That is a great idea. I updated the docs.
Really great new functionality, love this from a user's standpoint! Great feature, thank you @chris-rock 🎅 👍 |
matcher for less-restrictive comparison
This matcher implements a less-restrictive comparison. Currently, it was not possible to write integer comparison (#308)
As highlighted in #307 some resources have case-insensitive values, and I would like tests write
This PR introduces a new comparison matcher
cmp
, that covers those cases: