grafana/pkg/services/ngalert/provisioning
Alexander Weaver 0f56462fbe
Alerting: Provisioning message templates (#48665)
* Generate API for writing templates

* Persist templates app logic layer

* Validate templates

* Extract logic, make set and delete methods

* Drop post route for templates

* Fix response details, wire up remainder of API

* Authorize routes

* Mirror some existing tests on new APIs

* Generate mock for prov store

* Wire up prov store mock, add tests using it

* Cover cases for both storage paths

* Add happy path tests and fix bugs if file contains no template section

* Normalize template content with define statement

* Tests for deletion

* Fix linter error

* Move provenance field to DTO

* empty commit

* ID to name

* Fix in auth too
2022-05-05 15:21:42 -05:00
..
contactpoints_test.go Indicate whether routes are provisioned when GETting Alertmanager configuration (#47857) 2022-04-22 11:57:56 -05:00
contactpoints.go Drop ProvenanceOrgAdapter and build into store API instead (#48137) 2022-04-26 10:30:57 -05:00
notification_policies_test.go Extract Route validation from serialization methods so it can be re-used (#47649) 2022-04-27 15:15:41 -05:00
notification_policies.go Extract Route validation from serialization methods so it can be re-used (#47649) 2022-04-27 15:15:41 -05:00
persist_mock.go Alerting: Add provisioning GET routes for message templates (#48367) 2022-04-28 13:51:57 -05:00
persist.go Alerting: Provisioning message templates (#48665) 2022-05-05 15:21:42 -05:00
provisioning_store_mock.go Alerting: Provisioning message templates (#48665) 2022-05-05 15:21:42 -05:00
serialize.go Alerting: Provisioning API - Notification Policies (#46755) 2022-04-05 16:48:51 -05:00
templates_test.go Alerting: Provisioning message templates (#48665) 2022-05-05 15:21:42 -05:00
templates.go Alerting: Provisioning message templates (#48665) 2022-05-05 15:21:42 -05:00
testing.go Drop ProvenanceOrgAdapter and build into store API instead (#48137) 2022-04-26 10:30:57 -05:00
validate.go Extract Route validation from serialization methods so it can be re-used (#47649) 2022-04-27 15:15:41 -05:00