Improving chart tests with the chart testing project
The tests written in the previous section are sufficient enough to test whether the Guestbook application can be successfully installed. However, there are some key limitations that are inherent to the standard Helm testing process that need to be called out.
The first limitation to consider is the difficulty of testing the different permutations that can occur within a chart's values. Because the
helm test command does not provide the ability to modify your release's values beyond those set at the time of an installation or upgrade, the following workflow must be followed when running
helm test against different values settings:
- Install your chart with an initial set of values.
helm testagainst your release.
- Delete your release.
- Install your chart with a different set of values.
- Repeat steps 2 through 4 until a significant amount of value possibilities are tested.
In addition to...