-
Notifications
You must be signed in to change notification settings - Fork 34
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
Create config tests for each receiver #57
Conversation
59c3848
to
e4c852e
Compare
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.
LGTM
"github.com/stretchr/testify/require" | ||
|
||
"github.com/grafana/alerting/receivers" | ||
testing2 "github.com/grafana/alerting/receivers/testing" |
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.
nit: can this be something a bit more meaningful? e.g. receivers_testing
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.
yes. I will address it in the follow up!
This PR introduces tests for parsing notifier configuration. This increases the coverage of the receiver parsing logic, which opens the possibility for further safe refactorings.
Note: this does not touch any existing tests, which will be refactored in the following PR.