grafana/pkg/tests
Steve Simpson 6ea97e41fb
Alerting: Consistently return Prometheus-style responses from rules APIs. (#86600)
* Alerting: Consistently return Prometheus-style responses from rules APIs.

This commit is part refactor and part fix. The /rules API occasionally returns
error responses which are inconsistent with other error responses. This fixes
that, and adds a function to map from Prometheus error type and HTTP code.

* Fix integration tests

* Linter happiness

* Make linter more happy

* Fix up one more place returning non-Prometheus responses
2024-04-19 21:03:20 +02:00
..
api Alerting: Consistently return Prometheus-style responses from rules APIs. (#86600) 2024-04-19 21:03:20 +02:00
apis Chore: Replace sqlstore with db interface (#85366) 2024-04-04 15:04:47 +02:00
testinfra Chore: Replace sqlstore with db interface (#85366) 2024-04-04 15:04:47 +02:00
testsuite Chore: Update test database initialization (#81673) 2024-02-09 09:35:39 -05:00
web Session: set authID and authenticatedBy (#85806) 2024-04-11 10:25:29 +02:00
README.md Chore: Add CloudWatch HTTP API tests (#29691) 2021-01-07 11:36:13 +01:00
utils.go Chore: Replace sqlstore with db interface (#85366) 2024-04-04 15:04:47 +02:00

Integration tests

This directory contains Grafana server integration tests.