Skip to content

Upgrade helm-unittest #414

@cognifloyd

Description

@cognifloyd

The primary upstream for helm-unittest has moved from quintush/helm-unittest to helm-unittest/helm-unittest.

So, we need to update these lines to refer to the helm-unittest org:

Unit tests (`tests/unit/*_test.yaml`) use [`helm-unittest`](https://github.com/quintush/helm-unittest).

helm plugin install https://github.com/quintush/helm-unittest

See https://github.com/quintush/helm-unittest/blob/master/DOCUMENT.md for details on writing unit tests.

helm plugin install https://github.com/quintush/helm-unittest --version v0.2.11

And then we need to upgrade the version from v0.2.11 to a newer release. It looks like 0.4.4 is the latest as of 11 April 2024.
https://github.com/helm-unittest/helm-unittest/releases

There are several features in newer versions that look like they would allow us to simplify some of our tests, or make it possible to actually test things like the init containers. For example, v0.3.0 added jsonpath support. I hope that means we could replace the documentIndex with something that looks up the document based on something else, like the resource name. In any case, we should update the version of helm-unittest as much as possible, and then we can refactor the test in follow-up PRs.

Related to:

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions