grafana/pkg/services/provisioning/datasources
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
..
testdata Glue: Return correlation config in GET /correlations (#55801) 2022-09-28 12:17:43 +01:00
config_reader_test.go Tests: use t.Setenv to set env vars (#69516) 2023-06-05 11:31:03 +02:00
config_reader.go Chore: Replace yaml.v2 with yaml.v3 (#59897) 2022-12-06 21:17:17 +01:00
datasources.go Explore: Add transformations to correlation data links (#61799) 2023-02-22 06:53:03 -06:00
types_test.go Populate missing UID of provisioned data source only for new records (#42999) 2021-12-13 14:14:39 -05:00
types.go Chore: Rename Id to ID in alerting models (#62777) 2023-02-02 17:22:43 +01:00