authelia/internal/configuration
Eng Zer Jun 54afe925b8
test: use test machinery to set env vars in tests (#4640)
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>
2022-12-26 07:16:05 +11:00
..
schema docs: fix misc mistakes and adjust placeholders (#4614) 2022-12-22 11:39:59 +11:00
test_resources feat(configuration): file filters (#4515) 2022-12-21 20:48:14 +11:00
validator feat(configuration): glauth ldap implementation (#4499) 2022-12-21 22:14:22 +11:00
config.template.yml feat(configuration): lldap implementation (#4498) 2022-12-21 21:51:25 +11:00
configuration_test.go fix: include major in go.mod module directive (#2278) 2021-08-11 11:16:46 +10:00
const.go feat(templates): templating functions (#4635) 2022-12-23 21:58:54 +11:00
decode_hooks.go build(deps): update module github.com/go-crypt/crypt to v0.2.2 (#4452) 2022-12-05 09:37:08 +11:00
decode_hooks_test.go refactor: any (#4133) 2022-10-05 16:05:23 +11:00
deprecation.go refactor: any (#4133) 2022-10-05 16:05:23 +11:00
helpers.go ci: gen github tmpl locales and commitlint (#3759) 2022-09-16 14:21:05 +10:00
helpers_test.go ci: gen github tmpl locales and commitlint (#3759) 2022-09-16 14:21:05 +10:00
koanf_callbacks.go refactor: any (#4133) 2022-10-05 16:05:23 +11:00
koanf_callbacks_test.go test: use testing tempdir tooling (#4468) 2022-12-04 20:57:28 +11:00
koanf_provider_filtered_file.go feat(templates): templating functions (#4635) 2022-12-23 21:58:54 +11:00
koanf_provider_filtered_file_test.go feat(configuration): file filters (#4515) 2022-12-21 20:48:14 +11:00
koanf_util.go refactor: any (#4133) 2022-10-05 16:05:23 +11:00
koanf_util_test.go feat(configuration): automatically map old keys (#3199) 2022-06-28 13:15:50 +10:00
provider.go refactor(commands): command context (#4539) 2022-12-22 11:21:29 +11:00
provider_test.go test: use test machinery to set env vars in tests (#4640) 2022-12-26 07:16:05 +11:00
sources.go feat(configuration): load config from directory (#4616) 2022-12-22 17:34:20 +11:00
template.go feat(configuration): file filters (#4515) 2022-12-21 20:48:14 +11:00
template_test.go test: use testing tempdir tooling (#4468) 2022-12-04 20:57:28 +11:00
types.go feat(configuration): load config from directory (#4616) 2022-12-22 17:34:20 +11:00