Skip to content

Commit 9447a50

Browse files
committed
CI: Validate support with Grafana v13
1 parent dda45a7 commit 9447a50

5 files changed

Lines changed: 7 additions & 5 deletions

File tree

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ MONGODB_VERSION=8
1616
MONGODB_PORT=27017
1717

1818
# Grafana
19-
GRAFANA_VERSION=12.4.0
19+
GRAFANA_VERSION=13.1.0
2020
GRAFANA_PORT=3000
2121

2222

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
]
3737
mosquitto-version: [ "2.0" ]
3838
influxdb-version: [ "1.8" ]
39-
grafana-version: [ "12.4.0" ]
39+
grafana-version: [ "13.1.0" ]
4040

4141
include:
4242
- grafana-version: "7.5.17"

CHANGES.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ in progress
1111
- General: Dropped support for Python 3.7
1212
- DAQ: Masked ``PASSKEY`` variable coming from HTTP, emitted by Ecowitt
1313

14+
- **Grafana:** Validated support with Grafana v13
15+
1416
.. _kotori-0.28.1:
1517

1618
2026-02-27 0.28.1

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Kotori DAQ
6868
:target: https://github.com/eclipse/mosquitto
6969
:alt: Supported Mosquitto versions
7070

71-
.. image:: https://img.shields.io/badge/Grafana-5.x%20--%2012.x-blue.svg
71+
.. image:: https://img.shields.io/badge/Grafana-5.x%20--%2013.x-blue.svg
7272
:target: https://github.com/grafana/grafana
7373
:alt: Supported Grafana versions
7474

test/util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ def reset_grafana(machinery):
102102
logger.info(f"Attempt to delete datasource {datasource_name}")
103103
if datasource_name == self.settings.influx_database or \
104104
datasource_name in getattr(self.settings, "influx_databases", []):
105-
datasource_id = datasource['id']
106-
self.client.datasources[datasource_id].delete()
105+
datasource_uid = datasource['uid']
106+
self.client.make_raw_request("delete", f"datasources/uid/{datasource_uid}", None)
107107
logger.info(f"Successfully deleted datasource {datasource_name}")
108108

109109
for dashboard_name in self.settings.grafana_dashboards:

0 commit comments

Comments
 (0)