helmfile/pkg/app
Eng Zer Jun ce3b81e2a1
test: use `T.Setenv` to set env vars in tests (#189)
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-06-30 09:15:34 +09:00
..
testdata Make a few helmfile sub-commands consistently support needs-related flags (#78) 2022-06-20 07:19:39 +09:00
version feat: Persist Helmfile version in helmfile.lock for version compatibility check (#1016) 2019-12-11 09:19:18 +09:00
app.go Make a few helmfile sub-commands consistently support needs-related flags (#78) 2022-06-20 07:19:39 +09:00
app_apply_nokubectx_test.go Make a few helmfile sub-commands consistently support needs-related flags (#78) 2022-06-20 07:19:39 +09:00
app_apply_test.go Make a few helmfile sub-commands consistently support needs-related flags (#78) 2022-06-20 07:19:39 +09:00
app_diff_test.go Make a few helmfile sub-commands consistently support needs-related flags (#78) 2022-06-20 07:19:39 +09:00
app_lint_test.go add unittest for text_renderer.go (#168) 2022-06-29 20:33:15 +09:00
app_sync_test.go Make a few helmfile sub-commands consistently support needs-related flags (#78) 2022-06-20 07:19:39 +09:00
app_template_test.go add unittest for text_renderer.go (#168) 2022-06-29 20:33:15 +09:00
app_test.go test: use `T.Setenv` to set env vars in tests (#189) 2022-06-30 09:15:34 +09:00
ask.go feat: helmfile as a go library (#639) 2019-06-04 09:12:00 +09:00
config.go Make a few helmfile sub-commands consistently support needs-related flags (#78) 2022-06-20 07:19:39 +09:00
constants.go Introduce DISABLE_INSECURE_FEATURES to disable insecure command executions (#1) 2022-06-05 15:15:06 +09:00
constants_test.go test: use `T.Setenv` to set env vars in tests (#189) 2022-06-30 09:15:34 +09:00
context.go Rename module to github.com/helmfile/helmfile 2022-05-18 10:05:07 -04:00
desired_state_file_loader.go Rename module to github.com/helmfile/helmfile 2022-05-18 10:05:07 -04:00
destroy_nokubectx_test.go Introduce DISABLE_INSECURE_FEATURES to disable insecure command executions (#1) 2022-06-05 15:15:06 +09:00
destroy_test.go Introduce DISABLE_INSECURE_FEATURES to disable insecure command executions (#1) 2022-06-05 15:15:06 +09:00
diff_nokubectx_test.go Make a few helmfile sub-commands consistently support needs-related flags (#78) 2022-06-20 07:19:39 +09:00
diff_test.go Make a few helmfile sub-commands consistently support needs-related flags (#78) 2022-06-20 07:19:39 +09:00
errors.go feat: Opt-out dep-builds and repo-updates (#463) 2019-02-04 12:07:25 +09:00
errors_test.go add unittest for error.go in pkg/app 2022-04-28 09:01:02 +08:00
formatters.go Correct enabled property in helmfile list (#1921) 2022-01-10 17:24:07 +09:00
formatters_test.go Rename module to github.com/helmfile/helmfile 2022-05-18 10:05:07 -04:00
load_opts.go Rename module to github.com/helmfile/helmfile 2022-05-18 10:05:07 -04:00
load_opts_test.go add unittest for load_opts.go 2022-04-04 17:20:54 +08:00
mocks_test.go Rename module to github.com/helmfile/helmfile 2022-05-18 10:05:07 -04:00
run.go Rename module to github.com/helmfile/helmfile 2022-05-18 10:05:07 -04:00
snapshot_test.go remove ioutil usage in all project 2022-04-03 15:53:19 +08:00
two_pass_renderer.go Rename module to github.com/helmfile/helmfile 2022-05-18 10:05:07 -04:00
two_pass_renderer_test.go Rename module to github.com/helmfile/helmfile 2022-05-18 10:05:07 -04:00
validate_config.go Make --color and --no-color exclusive 2022-04-13 23:43:41 +00:00
validate_config_test.go add unittest for ValidateConfig 2022-04-27 07:38:22 +08:00