3
0
mirror of https://github.com/grafana/grafana.git synced 2025-02-25 18:55:37 -06:00
grafana/pkg/tests
Sofia Papagiannaki d1dab5828d
Alerting: Update rule API to address folders by UID ()
* Change ruler API to expect the folder UID as namespace

* Update example requests

* Fix tests

* Update swagger

* Modify FIle field in /api/prometheus/grafana/api/v1/rules

* Fix ruler export

* Modify folder in responses to be formatted as <parent UID>/<title>

* Add alerting test with nested folders

* Apply suggestion from code review

* Alerting: use folder UID instead of title in rule API ()

Co-authored-by: Sonia Aguilar <soniaaguilarpeiron@gmail.com>

* Drop a few more latent uses of namespace_id

* move getNamespaceKey to models package

* switch GetAlertRulesForScheduling to use folder table

* update GetAlertRulesForScheduling to return folder titles in format `parent_uid/title`.

* fi tests

* add tests for GetAlertRulesForScheduling when parent uid

* fix integration tests after merge

* fix test after merge

* change format of the namespace to JSON array

this is needed for forward compatibility, when we migrate to full paths

* update EF code to decode nested folder

---------

Co-authored-by: Yuri Tseretyan <yuriy.tseretyan@grafana.com>
Co-authored-by: Virginia Cepeda <virginia.cepeda@grafana.com>
Co-authored-by: Sonia Aguilar <soniaaguilarpeiron@gmail.com>
Co-authored-by: Alex Weaver <weaver.alex.d@gmail.com>
Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
2024-01-17 11:07:39 +02:00
..
api Alerting: Update rule API to address folders by UID () 2024-01-17 11:07:39 +02:00
apis K8s: Add dashboard service (requires dev mode) () 2024-01-11 01:20:30 +02:00
testinfra Alerting: Support hysteresis command expression () 2024-01-04 11:47:13 -05:00
web Login: refactor auth info package () 2023-11-21 14:47:23 +01:00
README.md Chore: Add CloudWatch HTTP API tests () 2021-01-07 11:36:13 +01:00
utils.go Nested Folders: Fix /api/folders pagination () 2023-12-15 19:34:08 +02:00

Integration tests

This directory contains Grafana server integration tests.