Closed psviderski closed 6 years ago
Thanks for your contribution to Sensu plugins! Without people like you submitting PRs we couldn't run the project. I will review it shortly.
sorry looks l never finished reviewing, looking now.
after reviewing #99 I am wondering if regex might be a better solution. Let me know what you think.
As I have not heard back from you and #99 implemented something that unlocks your use case I am gonna close this out.
You should be able to specify multiple status codes via regex in: https://rubygems.org/gems/sensu-plugins-http/versions/2.11.0
Pull Request Checklist
Is this in reference to an existing issue? https://github.com/sensu-plugins/sensu-plugins-http/issues/89
General
[x] Update Changelog following the conventions laid out here
[X] Update README with any necessary configuration snippets
[X] Binstubs are created if needed
[X] RuboCop passes
[x] Existing tests pass
Purpose
Allow
--response-code
option to accept not only a single HTTP status code but also a comma-separated list of codes. In the later case expect a response with status code equal to any one from the list.Known Compatibility Issues