grafana/pkg/services/provisioning/dashboards
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 Provisioning: Improve validation by validating across all dashboard providers (#26742) 2021-07-21 17:52:41 +02: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: Fix goimports grouping in pkg/services (#62420) 2023-01-30 08:21:27 +00:00
dashboard_mock.go Search: Fix indexing - re-index after initial provisioning (#50959) 2022-06-27 18:11:08 +03:00
dashboard.go Chore: Remove dashboards from models pkg (#61578) 2023-01-18 13:52:41 +01:00
file_reader_symlink_test.go Chore: Fix goimports grouping in pkg/services (#62420) 2023-01-30 08:21:27 +00:00
file_reader_test.go Chore: Remove Result from dashboard models (#61997) 2023-01-25 10:36:26 +01:00
file_reader.go Dashboards: Evaluate provisioned dashboard titles in a backwards compatible way (#65184) 2023-03-28 13:24:19 +02:00
types.go Chore: Move dashboard models to dashboard pkg (#61458) 2023-01-16 16:33:55 +01:00
validator_test.go Chore: Remove dashboards from models pkg (#61578) 2023-01-18 13:52:41 +01:00
validator.go Provisioning: Fix duplicate validation when multiple organizations have been configured (#44151) 2022-01-26 11:33:31 +01:00