-
-
Notifications
You must be signed in to change notification settings - Fork 424
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
feat(alerting): Add Pushover provider #405
Conversation
- Adds new provider named Pushover with corresponding tests - Adds Pushover as a provider to the configuration and adjusts test accordingly - Adds Pushover to alerting_test.go, provider.go and type.go - Updates the readme with configuration details
Codecov ReportBase: 82.00% // Head: 81.98% // Decreases project coverage by
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more Additional details and impacted files@@ Coverage Diff @@
## master #405 +/- ##
==========================================
- Coverage 82.00% 81.98% -0.02%
==========================================
Files 55 56 +1
Lines 4178 4225 +47
==========================================
+ Hits 3426 3464 +38
- Misses 586 592 +6
- Partials 166 169 +3
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
I have built the Docker container with the latest changes and tested it with this config:
Working as expected. What I would like to add before merging this is to add support for placeholders in title and description like the custom provider does. I think this should be handled by a helper function so that there's no code duplication, because currently it's just hardcoded into the custom provider. Any thoughts an that? |
Using the There's a couple of integration tests that send real requests, but I try to avoid them as much as possible, and when it's unavoidable, I either use a website that I own or a stable public service (e.g. example.com, example.org, a public DNS, etc.), because they have predictable outputs or I can control the outputs myself. As such, I wouldn't feel really comfortable having an integration test for something like pushover unless they explicitly provide permission. |
@Kovah Excellent work! |
Great, thanks for merging! |
Summary
I am not sure if I missed something. There are a lot of files where providers are referenced, but I think I got all of them.
Before merging: what would be the best way to properly test this with real API calls? Is there any process defined or should I just try to build it and check if a config works?
Additional thoughts/ideas that could be implemented later:
Related: ##129
Checklist
README.md
, if applicable.