Closed absolutejam closed 6 years ago
Can I also get a testing artifact?
Are there any example plugins that have tests? Ruby, and rspec especially, is alien to me, so I'm not doing a great job at making my test work, nevermind pass 🤦♂️
check out any of the ones checked off here: https://github.com/sensu-plugins/community/issues/41
dcos was the initial one and probably has the most coverage.
@majormoses Changes taken into consideration.
Hope you don't mind the .rubocop.yml
tweaks too, but they didn't make sense for rspec files.
Oops, thanks for spotting that.
Added tests to check both long and short flags, tweaking original tests to better emulate CLI args (Using parse_options
instead of directly setting the values) 👍
Do you want the commits squashing for tidiness?
Before githb offered it I often requested people to. Now I generally use the squash and rebase option to accept a contribution when there are a lot of commits with messages with little overall value. If the commits paint a story of how we got there and it is valuable I do a rebase and merge. I never use the actual "Merge" option as it pollutes the history.
If, you'd like to tidy up your commits I can certainly wait for you to accept this.
I didn't even know GitHub could do that...
It is a somewhat new feature and one that I have been requesting for years (mostly because merge with out fast farwarding is a terrible idea), you can read about the different functions here: https://help.github.com/articles/about-merge-methods-on-github in my orgs I actually disable the normal merge option as merging without fast farwarding is a terrible idea.
This allows the plugin to (o)nly check specific mount points.
Pull Request Checklist
This is not in reference to an existing issue, but a feature I needed. This lets me create specific checks for certain, high priority disks.
General
[x] Update Changelog following the conventions laid out on Our CHANGELOG Guidelines
[x] Update README with any necessary configuration snippets
[ ] Binstubs are created if needed
[x] RuboCop passes
[x] Existing tests pass