grafana/pkg/services/provisioning
Eng Zer Jun cf1945d0c3
Tests: use t.Setenv to set env vars (#69516)
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 (#69516) 2023-06-05 11:31:03 +02:00
dashboards Tests: use t.Setenv to set env vars (#69516) 2023-06-05 11:31:03 +02:00
datasources Tests: use t.Setenv to set env vars (#69516) 2023-06-05 11:31:03 +02:00
notifiers Tests: use t.Setenv to set env vars (#69516) 2023-06-05 11:31:03 +02:00
plugins Tests: use t.Setenv to set env vars (#69516) 2023-06-05 11:31:03 +02:00
utils Chore: Remove Result from dashboard models (#61997) 2023-01-25 10:36:26 +01:00
values Tests: use t.Setenv to set env vars (#69516) 2023-06-05 11:31:03 +02:00
provisioning_mock.go Alerting: Add file provisioning for contact points (#51924) 2022-08-01 18:17:42 +02:00
provisioning_test.go Chore: Fix goimports grouping in pkg/services (#62420) 2023-01-30 08:21:27 +00:00
provisioning.go Plugins: Migrate plugincontext, adapters and pluginsettings to pkg/services/pluginsintegration package (#64154) 2023-03-07 11:22:30 -05:00