Skip to content

Commit 82aef43

Browse files
committed
CI: Update to Grafana 9.5.18 and 10.4.1
1 parent f788a50 commit 82aef43

File tree

3 files changed

+14
-7
lines changed

3 files changed

+14
-7
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
matrix:
2828
os: [ "ubuntu-latest" ]
2929
python-version: [ "3.7", "3.11" ]
30-
grafana-version: [ "6.7.6", "7.5.17", "8.5.27", "9.5.13", "10.1.5" ]
30+
grafana-version: [ "6.7.6", "7.5.17", "8.5.27", "9.5.18", "10.3.5", "10.4.1" ]
3131

3232
env:
3333
OS_TYPE: ${{ matrix.os }}

tests/.env

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#GRAFANA_VERSION=6.7.6
22
#GRAFANA_VERSION=7.5.17
33
#GRAFANA_VERSION=8.5.27
4-
#GRAFANA_VERSION=9.5.13
5-
GRAFANA_VERSION=10.1.5
4+
#GRAFANA_VERSION=9.5.18
5+
#GRAFANA_VERSION=10.1.9
6+
#GRAFANA_VERSION=10.3.5
7+
GRAFANA_VERSION=10.4.1

tests/test_commands.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -369,9 +369,9 @@ def test_explore_datasources_used(create_datasource, create_dashboard, capsys, c
369369

370370
# Results will be sorted by name, so `bar` comes first.
371371
assert data["used"][0]["datasource"]["name"] == "bar"
372-
assert data["used"][0]["datasource"]["type"] == "testdata"
372+
assert data["used"][0]["datasource"]["type"] in ["testdata", "grafana-testdata-datasource"]
373373
assert data["used"][1]["datasource"]["name"] == "foo"
374-
assert data["used"][1]["datasource"]["type"] == "testdata"
374+
assert data["used"][1]["datasource"]["type"] in ["testdata", "grafana-testdata-datasource"]
375375

376376

377377
def test_explore_datasources_unused(create_datasource, capsys, caplog):
@@ -522,7 +522,9 @@ def test_explore_dashboards_empty_annotations(grafana_version, create_datasource
522522
assert len(data) == 1
523523
dashboard = data[0]
524524
assert dashboard["dashboard"]["title"] == "foo"
525-
if version.parse(grafana_version) >= version.parse("9.5"):
525+
if version.parse(grafana_version) >= version.parse("10.4"):
526+
assert len(dashboard["dashboard"]["uid"]) == 14
527+
elif version.parse(grafana_version) >= version.parse("9.5"):
526528
assert len(dashboard["dashboard"]["uid"]) == 36
527529
else:
528530
assert len(dashboard["dashboard"]["uid"]) == 9
@@ -644,8 +646,11 @@ def test_plugins_status_app(grafana_version, docker_grafana, capsys, caplog):
644646

645647
# Proof the output is correct.
646648
plugin = munchify(get_plugin_by_id(plugin_list=data, plugin_id="aws-datasource-provisioner-app"))
649+
assert plugin.id == "aws-datasource-provisioner-app"
647650
assert "process_virtual_memory_max_bytes" in plugin.metrics
648-
assert plugin.health == {"message": "", "status": "OK"}
651+
652+
if version.parse(grafana_version) < version.parse("10.3"):
653+
assert plugin.health == {"message": "", "status": "OK"}
649654

650655

651656
def test_plugins_install_uninstall(grafana_version, docker_grafana, capsys, caplog):

0 commit comments

Comments
 (0)