Re: Helm unit tests


Gareth Rushgrove
 

As one of the maintainers I'm biased, but try out Conftest
https://github.com/instrumenta/conftest

We have a Helm plugin which makes this easier too
https://github.com/instrumenta/helm-conftest

Gareth

On Wed, 26 Feb 2020 at 15:48, Simon Fontana Oscarsson via
Lists.Cncf.Io <simon.fontana.oscarsson=ericsson.com@...>
wrote:


Hi,

Are there any good options for writing unit tests for Helm charts? My use case is that I want to test that, when setting a parameter, the correct changes are applied to the chart.

I've looked a bit at the helm-unittest project (https://github.com/lrills/helm-unittest) and it looks good enough. Unfortunately it is no longer maintained, last commit was almost a year ago and many issues are left unanswered. For example it doesn't have Helm v3 support (yes, there is a PR but I don't want to apply hotfixes and maintain the project myself).
Are there any other good projects with healthy community support for Helm chart unit tests?

--

SIMON FONTANA OSCARSSON
Software Developer

Ericsson
Ölandsgatan 1
37133 Karlskrona, Sweden
simon.fontana.oscarsson@...
www.ericsson.com

--
Gareth Rushgrove
@garethr

garethr.dev
devopsweekly.com

Join cncf-helm@lists.cncf.io to automatically receive all group messages.