Commit graph

7 commits

Author SHA1 Message Date
Robert Sirchia
6d9509aadc
json schema fix
Signed-off-by: Robert Sirchia <rsirchia@outlook.com>
2025-07-25 10:03:46 -04:00
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
Matt Farina
4e7e939f19
Updating the Go version in go.mod
At this time both Go 1.19 and 1.20 are supported. The version
specified in the go.mod file is the minimum version we expect Helm
to be compiled against. This is the oldest supported version to
support environments where others compile Helm. The Helm project
is using Go 1.20 to build Helm itself.

Updating to Go 1.19 also includes dealing with io/ioutil
deprecation and some additional linting issues around staticcheck.
All the staticcheck issues were in test files so linting was
skipped for those.

Signed-off-by: Matt Farina <matt.farina@suse.com>
2023-03-22 11:52:30 -04:00
Matthew Luckam
592c338242 updated unit tests to conform with helm best practices
Signed-off-by: Matthew Luckam <Matthew.Luckam@peraton.com>
2021-03-03 11:18:34 -05:00
Matthew Luckam
f402994461 corrected order of helm lint coalescing of multiple values files
Signed-off-by: Matthew Luckam <Matthew.Luckam@peraton.com>
2021-03-03 11:18:34 -05:00
Matt Butcher
59eed4e81f
feat: make the linter coalesce the passed-in values before running values tests (#7984)
* fix: make the linter coalesce the passed-in values before running values tests

Signed-off-by: Matt Butcher <matt.butcher@microsoft.com>

* fixed typo

Signed-off-by: Matt Butcher <matt.butcher@microsoft.com>
2020-05-12 14:23:25 -06:00
Kim Bao Long
9d20e44ad1 Add unit test for lint/values.go
Signed-off-by: Kim Bao Long <longkb@vn.fujitsu.com>
2020-03-18 08:39:07 +07:00