@@ -332,8 +332,8 @@ def test_health_check_loki_success_grafana7(self, m):
332332 # Mock the version inquiry request, because `smartquery` needs
333333 # it, as Loki responses differ between versions.
334334 m .get (
335- "http://localhost/api/health " ,
336- json = {"commit " : "unknown" , "database" : "ok " , "version" : "7.0.1" },
335+ "http://localhost/api/frontend/settings " ,
336+ json = {"buildInfo " : { "commit" : "unknown " , "version" : "7.0.1" } },
337337 )
338338 m .get (
339339 "http://localhost/api/datasources/uid/vCyglaq7z" ,
@@ -364,8 +364,8 @@ def test_health_check_loki_success_grafana9(self, m):
364364 # Mock the version inquiry request, because `smartquery` needs
365365 # it, as Loki responses differ between versions.
366366 m .get (
367- "http://localhost/api/health " ,
368- json = {"commit " : "14e988bd22" , "database" : "ok " , "version" : "9.0.1" },
367+ "http://localhost/api/frontend/settings " ,
368+ json = {"buildInfo " : { "commit" : "14e988bd22 " , "version" : "9.0.1" } },
369369 )
370370 m .get (
371371 "http://localhost/api/datasources/uid/vCyglaq7z" ,
@@ -396,8 +396,8 @@ def test_health_check_loki_error_response_failure_grafana7(self, m):
396396 # Mock the version inquiry request, because `smartquery` needs
397397 # it, as Loki responses differ between versions.
398398 m .get (
399- "http://localhost/api/health " ,
400- json = {"commit " : "unknown" , "database" : "ok " , "version" : "7.0.1" },
399+ "http://localhost/api/frontend/settings " ,
400+ json = {"buildInfo " : { "commit" : "unknown " , "version" : "7.0.1" } },
401401 )
402402 m .get (
403403 "http://localhost/api/datasources/uid/vCyglaq7z" ,
@@ -428,8 +428,8 @@ def test_health_check_loki_error_response_failure_grafana9(self, m):
428428 # Mock the version inquiry request, because `smartquery` needs
429429 # it, as Loki responses differ between versions.
430430 m .get (
431- "http://localhost/api/health " ,
432- json = {"commit " : "14e988bd22" , "database" : "ok " , "version" : "9.0.1" },
431+ "http://localhost/api/frontend/settings " ,
432+ json = {"buildInfo " : { "commit" : "14e988bd22 " , "version" : "9.0.1" } },
433433 )
434434 m .get (
435435 "http://localhost/api/datasources/uid/vCyglaq7z" ,
@@ -565,8 +565,8 @@ def test_health_check_prometheus_healthy_success(self, grafana_version):
565565 # Mock the version inquiry request, because `smartquery` needs
566566 # it, as Prometheus responses differ between versions.
567567 m .get (
568- "http://localhost/api/health " ,
569- json = {"commit " : "unknown" , "database" : "ok " , "version" : grafana_version },
568+ "http://localhost/api/frontend/settings " ,
569+ json = {"buildInfo " : { "commit" : "unknown " , "version" : grafana_version } },
570570 )
571571 m .get (
572572 "http://localhost/api/datasources/uid/h8KkCLt7z" ,
@@ -599,8 +599,8 @@ def test_health_check_prometheus_empty_dataframe_success(self, grafana_version):
599599 # Mock the version inquiry request, because `smartquery` needs
600600 # it, as Prometheus responses differ between versions.
601601 m .get (
602- "http://localhost/api/health " ,
603- json = {"commit " : "unknown" , "database" : "ok " , "version" : grafana_version },
602+ "http://localhost/api/frontend/settings " ,
603+ json = {"buildInfo " : { "commit" : "unknown " , "version" : grafana_version } },
604604 )
605605 m .get (
606606 "http://localhost/api/datasources/uid/h8KkCLt7z" ,
@@ -633,8 +633,8 @@ def test_health_check_prometheus_invalid_dataframe_failure(self, grafana_version
633633 # Mock the version inquiry request, because `smartquery` needs
634634 # it, as Prometheus responses differ between versions.
635635 m .get (
636- "http://localhost/api/health " ,
637- json = {"commit " : "unknown" , "database" : "ok " , "version" : grafana_version },
636+ "http://localhost/api/frontend/settings " ,
637+ json = {"buildInfo " : { "commit" : "unknown " , "version" : grafana_version } },
638638 )
639639 m .get (
640640 "http://localhost/api/datasources/uid/h8KkCLt7z" ,
@@ -1161,8 +1161,8 @@ def setUp(self):
11611161 @requests_mock .Mocker ()
11621162 def test_health_inquiry_native_prometheus_success (self , m ):
11631163 m .get (
1164- "http://localhost/api/health " ,
1165- json = {"commit " : "14e988bd22" , "database" : "ok " , "version" : "9.0.1" },
1164+ "http://localhost/api/frontend/settings " ,
1165+ json = {"buildInfo " : { "commit" : "14e988bd22 " , "version" : "9.0.1" } },
11661166 )
11671167 m .get (
11681168 "http://localhost/api/datasources/uid/39mf288en" ,
@@ -1191,8 +1191,8 @@ def test_health_inquiry_native_prometheus_success(self, m):
11911191 @requests_mock .Mocker ()
11921192 def test_health_inquiry_native_prometheus_failure (self , m ):
11931193 m .get (
1194- "http://localhost/api/health " ,
1195- json = {"commit " : "14e988bd22" , "database" : "ok " , "version" : "9.0.1" },
1194+ "http://localhost/api/frontend/settings " ,
1195+ json = {"buildInfo " : { "commit" : "14e988bd22 " , "version" : "9.0.1" } },
11961196 )
11971197 m .get (
11981198 "http://localhost/api/datasources/uid/39mf288en" ,
@@ -1221,8 +1221,8 @@ def test_health_inquiry_native_prometheus_failure(self, m):
12211221 @requests_mock .Mocker ()
12221222 def test_health_inquiry_native_unknown_error_400 (self , m ):
12231223 m .get (
1224- "http://localhost/api/health " ,
1225- json = {"commit " : "14e988bd22" , "database" : "ok " , "version" : "9.0.1" },
1224+ "http://localhost/api/frontend/settings " ,
1225+ json = {"buildInfo " : { "commit" : "14e988bd22 " , "version" : "9.0.1" } },
12261226 )
12271227 m .get (
12281228 "http://localhost/api/datasources/uid/39mf288en" ,
@@ -1252,8 +1252,8 @@ def test_health_inquiry_native_unknown_error_400(self, m):
12521252 @requests_mock .Mocker ()
12531253 def test_health_inquiry_native_unknown_error_418 (self , m ):
12541254 m .get (
1255- "http://localhost/api/health " ,
1256- json = {"commit " : "14e988bd22" , "database" : "ok " , "version" : "9.0.1" },
1255+ "http://localhost/api/frontend/settings " ,
1256+ json = {"buildInfo " : { "commit" : "14e988bd22 " , "version" : "9.0.1" } },
12571257 )
12581258 m .get (
12591259 "http://localhost/api/datasources/uid/39mf288en" ,
@@ -1271,8 +1271,8 @@ def test_health_inquiry_native_unknown_error_418(self, m):
12711271 @requests_mock .Mocker ()
12721272 def test_health_inquiry_native_prometheus_error_404 (self , m ):
12731273 m .get (
1274- "http://localhost/api/health " ,
1275- json = {"commit " : "14e988bd22" , "database" : "ok " , "version" : "9.0.1" },
1274+ "http://localhost/api/frontend/settings " ,
1275+ json = {"buildInfo " : { "commit" : "14e988bd22 " , "version" : "9.0.1" } },
12761276 )
12771277 m .get (
12781278 "http://localhost/api/datasources/uid/h8KkCLt7z" ,
@@ -1308,8 +1308,8 @@ def test_health_inquiry_native_prometheus_error_404(self, m):
13081308 @requests_mock .Mocker ()
13091309 def test_health_inquiry_native_prometheus_error_500 (self , m ):
13101310 m .get (
1311- "http://localhost/api/health " ,
1312- json = {"commit " : "14e988bd22" , "database" : "ok " , "version" : "9.0.1" },
1311+ "http://localhost/api/frontend/settings " ,
1312+ json = {"buildInfo " : { "commit" : "14e988bd22 " , "version" : "9.0.1" } },
13131313 )
13141314 m .get (
13151315 "http://localhost/api/datasources/uid/h8KkCLt7z" ,
0 commit comments