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:
The primary upstream for
helm-unittesthas moved fromquintush/helm-unittesttohelm-unittest/helm-unittest.So, we need to update these lines to refer to the helm-unittest org:
stackstorm-k8s/tests/README.md
Line 7 in ef1ed63
stackstorm-k8s/tests/README.md
Line 14 in ef1ed63
stackstorm-k8s/tests/README.md
Line 25 in ef1ed63
stackstorm-k8s/.github/workflows/unit.yaml
Line 38 in ef1ed63
And then we need to upgrade the version from
v0.2.11to a newer release. It looks like0.4.4is 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
documentIndexwith something that looks up the document based on something else, like the resource name. In any case, we should update the version ofhelm-unittestas much as possible, and then we can refactor the test in follow-up PRs.Related to: