Improving chart tests with the Chart Testing tool
The testing methods described in the previous section are sufficient enough to determine whether a Helm chart can be successfully installed. However, some key limitations are inherent to the standard Helm testing process and need to be discussed.
The first limitation to consider is the difficulty of testing different permutations that can occur within a chart’s values. Because the helm test
command does not provide the ability to modify a 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:
- Install your chart with an initial set of values.
- Run
helm test
against your release. - Delete your release.
- Install the chart with a different set of values.
- Repeat Step 2 through Step 4 until a significant amount of value possibilities have been tested.
Each of these manual steps poses the...