helm/pkg/action
Eng Zer Jun 2ceebffc77
test: replace ensure.TempDir with t.TempDir
This commit replaces `ensure.TempDir` with `t.TempDir` in tests. The
directory created by `t.TempDir` is automatically removed when the test
and all its subtests complete.

Prior to this commit, temporary directory created using `ensure.TempDir`
needs to be removed manually by calling `os.RemoveAll`, which is omitted
in some tests. The error handling boilerplate e.g.
	defer func() {
		if err := os.RemoveAll(dir); err != nil {
			t.Fatal(err)
		}
	}
is also tedious, but `t.TempDir` handles this for us nicely.

Reference: https://pkg.go.dev/testing#T.TempDir
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2023-07-29 16:11:22 +08:00
..
testdata this rewrites a whole bunch of old repo URLs to the new repo URL (#8902) 2020-10-19 14:38:32 -06:00
action.go Merge pull request #9426 from tapaskapadia/feat/lookup-dryrun 2023-07-20 13:30:52 -04:00
action_test.go Updating the Go version in go.mod 2023-03-22 11:52:30 -04:00
dependency.go docs: fix typo Charts.yaml 2021-10-07 16:50:25 +01:00
dependency_test.go Merge pull request #10458 from SimonAlling/remove-AssertGoldenBytes 2022-04-29 09:37:23 +01:00
doc.go feat: add 'pkg/action' for list operations (#5077) 2019-01-07 17:45:14 -07:00
get.go Add comments about release Version variable 2020-01-09 21:41:13 +01:00
get_values.go fix(cli): IsReachable check for "get values" 2019-12-03 08:48:44 -05:00
history.go Add explanatory comments to action.List and action.History 2020-12-18 15:16:50 -08:00
hooks.go fix(helm): sort hooks by kind for equal weight 2020-01-23 09:07:06 +01:00
install.go Merge pull request #12162 from mattfarina/fix-merge-values-ugh 2023-07-26 09:30:09 -04:00
install_test.go feat(helm): add ability for --dry-run to do lookup functions 2023-04-08 18:43:01 -05:00
lazyclient.go upgrade to kubernetes 1.21 2021-04-12 22:56:09 -04:00
lint.go fix quiet lint does not fail on non-linting errors 2023-04-10 09:22:24 -07:00
lint_test.go ref(tests): localize unit test fixtures to package 2020-05-22 11:39:20 -07:00
list.go Add support helm list --no-headers 2022-03-26 09:07:18 +08:00
list_test.go Added testing for list action with selector 2020-08-04 18:18:50 +03:00
package.go Updating the Go version in go.mod 2023-03-22 11:52:30 -04:00
package_test.go test: replace ensure.TempDir with t.TempDir 2023-07-29 16:11:22 +08:00
pull.go Updating the Go version in go.mod 2023-03-22 11:52:30 -04:00
push.go Provide a helper to set the registryClient in cmd 2023-03-03 07:33:17 -06:00
registry_login.go Added insecure option to login subcommand 2023-03-03 07:33:17 -06:00
registry_logout.go Move all the remainder module out of experimental. 2022-01-12 22:51:32 -05:00
release_testing.go feat: Allow helm test to run a subset of tests 2020-10-31 17:21:10 -04:00
resource_policy.go Remove duplicate variable definition 2020-09-02 10:30:41 +08:00
rollback.go fix(rollback): fix helm rollback doesn't have meta.helm.sh annotations 2021-11-30 10:45:34 +08:00
show.go Provide a helper to set the registryClient in cmd 2023-03-03 07:33:17 -06:00
show_test.go Fix panic with OCI for install, upgrade, and show 2022-01-12 21:30:27 -05:00
status.go Fix improper use of Table request/response to k8s API 2023-01-12 08:38:10 -05:00
uninstall.go Add option to support cascade deletion options 2023-02-02 11:22:32 +00:00
uninstall_test.go Add option to support cascade deletion options 2023-02-02 11:22:32 +00:00
upgrade.go Merge pull request #12162 from mattfarina/fix-merge-values-ugh 2023-07-26 09:30:09 -04:00
upgrade_test.go Fix install memory/goroutine leak 2021-12-20 10:17:38 +01:00
validate.go fix: added resource info into the validation error 2021-11-12 19:00:43 +03:00
validate_test.go Add tests 2020-03-10 22:22:40 -04:00
verify.go Add verification output to the verify command 2020-02-28 12:52:21 -05:00