3
0
mirror of https://github.com/grafana/grafana.git synced 2025-02-25 18:55:37 -06:00
grafana/pkg/services/provisioning
Eng Zer Jun cf1945d0c3
Tests: use t.Setenv to set env vars ()
This commit replaces `os.Setenv` with `t.Setenv` in tests. The
environment variable is automatically restored to its original value
when the test and all its subtests complete.

Reference: https://pkg.go.dev/testing#T.Setenv

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2023-06-05 11:31:03 +02:00
..
alerting Tests: use t.Setenv to set env vars () 2023-06-05 11:31:03 +02:00
dashboards Tests: use t.Setenv to set env vars () 2023-06-05 11:31:03 +02:00
datasources Tests: use t.Setenv to set env vars () 2023-06-05 11:31:03 +02:00
notifiers Tests: use t.Setenv to set env vars () 2023-06-05 11:31:03 +02:00
plugins Tests: use t.Setenv to set env vars () 2023-06-05 11:31:03 +02:00
utils Chore: Remove Result from dashboard models () 2023-01-25 10:36:26 +01:00
values Tests: use t.Setenv to set env vars () 2023-06-05 11:31:03 +02:00
provisioning_mock.go Alerting: Add file provisioning for contact points () 2022-08-01 18:17:42 +02:00
provisioning_test.go Chore: Fix goimports grouping in pkg/services () 2023-01-30 08:21:27 +00:00
provisioning.go Plugins: Migrate plugincontext, adapters and pluginsettings to pkg/services/pluginsintegration package () 2023-03-07 11:22:30 -05:00