Open igdianov opened 5 years ago
I can see a greater appeal of this for the common chart as it performs much more logic than the other chart. Common is also a bit less exposed to the changes that could happen related to https://github.com/Activiti/Activiti/issues/2269
Unit tests like these quite coupled to the code. For the runtime bundle and so on they could end up just asserting that the yaml contains what it quite obviously contains by reading the template file. That's more maintenance we should be cautious about if significant changes are coming. I'd say that would require a team decision.
This PR will add support for Helm unit tests to keep our charts consistent and robust using https://github.com/lrills/helm-unittest plugin.
This will allow to write test files in pure YAML, render test resource templates locally with no need of tiller while define values and release options for multiple test cases. This will also enable us to apply CI/CD for automating Helm chart PR validation, releases and promotion via updatebot.
In case of test error the following output will be produced: