authelia/internal/commands
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
..
acl.go refactor(commands): command context (#4539) 2022-12-22 11:21:29 +11:00
build-info.go refactor(commands): command context (#4539) 2022-12-22 11:21:29 +11:00
const.go feat(commands): storage import/export commands (#4545) 2022-12-23 15:00:23 +11:00
context.go refactor(notifier): utilize smtp lib (#4403) 2022-12-23 16:06:49 +11:00
crypto.go refactor(commands): command context (#4539) 2022-12-22 11:21:29 +11:00
crypto_hash.go feat(commands): storage import/export commands (#4545) 2022-12-23 15:00:23 +11:00
crypto_helper.go refactor(commands): command context (#4539) 2022-12-22 11:21:29 +11:00
errors.go refactor(commands): command context (#4539) 2022-12-22 11:21:29 +11:00
helpers.go refactor(commands): command context (#4539) 2022-12-22 11:21:29 +11:00
helpers_test.go refactor(commands): command context (#4539) 2022-12-22 11:21:29 +11:00
root.go feat(configuration): env config file discovery (#4618) 2022-12-23 11:03:50 +11:00
storage.go feat(commands): storage import/export commands (#4545) 2022-12-23 15:00:23 +11:00
storage_run.go feat(commands): storage import/export commands (#4545) 2022-12-23 15:00:23 +11:00
util.go feat(commands): storage import/export commands (#4545) 2022-12-23 15:00:23 +11:00
util_test.go test: use test machinery to set env vars in tests (#4640) 2022-12-26 07:16:05 +11:00
validate.go refactor(commands): command context (#4539) 2022-12-22 11:21:29 +11:00