Skip to content
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

Merged
merged 4 commits into from
Feb 10, 2023

Conversation

yuri-tceretian
Copy link
Contributor

@yuri-tceretian yuri-tceretian commented Feb 9, 2023

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.

@yuri-tceretian yuri-tceretian added enhancement New feature or request kata:am_unify labels Feb 9, 2023
@yuri-tceretian yuri-tceretian self-assigned this Feb 9, 2023
Copy link
Collaborator

@gotjosh gotjosh left a 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"
Copy link
Collaborator

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

Copy link
Contributor Author

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!

@yuri-tceretian yuri-tceretian merged commit 2e82606 into main Feb 10, 2023
@yuri-tceretian yuri-tceretian deleted the yuri-tceretian/receivers-tests branch February 10, 2023 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request kata:am_unify
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants