grafana/pkg/tests/api
Yuri Tseretyan d58ea37268
Alerting: Reject imported configs with unsupported receiver fields (#125906)
* Alerting: Reject imported configs with unsupported receiver fields

Imported Prometheus/Mimir Alertmanager configs that use receiver fields
Grafana cannot represent (e.g. the *_file / *_ref fields removed in
grafana/alerting#573) were silently dropped during conversion.

Validate now round-trips each receiver through the upstream<->definition
conversion and rejects any field that does not survive, listing the
offending receivers and their YAML field paths in the error's "extra"
payload. Detection is generic, so it stays correct as upstream adds fields.

* Alerting: Add integration test for unsupported receiver fields import

Asserts POST /convert/api/v1/alerts rejects a config whose receiver uses a
field Grafana cannot represent (auth_password_file), returns the YAML field
path, and stores nothing.

* improve test
2026-06-05 09:15:12 -04:00
..
admin/encryption Admin: Retry queries and tx more times in sqlite (#121926) 2026-04-06 14:01:36 +02:00
alerting Alerting: Reject imported configs with unsupported receiver fields (#125906) 2026-06-05 09:15:12 -04:00
annotations RBAC: Remove annotationPermissionUpdate feature toggle (#117213) 2026-01-31 02:23:48 +00:00
azuremonitor Replace check for integration tests. (#110707) 2025-09-08 15:49:49 +02:00
correlations Correlations: Filter by org id when returning correlation count in get response (#124819) 2026-05-13 12:14:59 -05:00
dashboards Storage: Reject duplicate deprecatedInternalID at admission (#125711) 2026-05-29 16:34:58 -03:00
datasources Add new feature flag for rollout of datasource CRUD APIs (#122618) 2026-04-17 10:59:26 -04:00
folders Dashboards/Folders: Remove dual write support (#121310) 2026-03-29 10:17:56 +03:00
graphite Graphite: Backend querying improvements (#111549) 2025-10-01 15:04:21 +02:00
influxdb Replace check for integration tests. (#110707) 2025-09-08 15:49:49 +02:00
loki Replace check for integration tests. (#110707) 2025-09-08 15:49:49 +02:00
metrics remove flaky cloudwatch test (#45800) 2022-02-23 13:59:53 -06:00
opentdsb OpenTSDB: Add error source (#115874) 2026-01-21 14:00:41 +00:00
plugins plugins: fix test by adding missing logstable entry (#125013) 2026-05-15 18:34:08 +00:00
prometheus Replace check for integration tests. (#110707) 2025-09-08 15:49:49 +02:00
publicdashboards Public dashboards: move to integration tests (#108735) 2025-07-28 17:14:09 +00:00
shorturl ShortURL: Promote k8s api to GA (#124938) 2026-05-19 10:54:51 -03:00
stats IAM: Add support for kubernetes APIs in user service (#120502) 2026-03-18 14:57:55 +02:00