mirror of
https://github.com/helmfile/helmfile.git
synced 2026-10-18 06:57:05 +02:00
This similar to #239, but different in that it involves a local helm chart repo server instead of a local OCI registry as the container of the chart used in tests. This also adds a new `localChartRepoServer.enabled` config to the `config.yaml` of each test case directory to enable the local helm repo server in the test, which might be useful when you want to add another test case that involes a remote chart(which is hosted in the local chart repo server). Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
This directory contains a set of Go test source and testdata
to test the helmfile template's rendering result by calling helmfile build or helmfile template on test input
and comparing the output against the snapshot.
The testdata directory is composed of:
charts: The Helm charts used from within test helmfile configs (snapshpt/*/input.yaml) as local charts and remote chartssnapshot/$NAME/input.yaml: The input helmfile config for the test case of$NAMEsnapshot/$NAME/output.yaml: The expected output of the helmfile commandsnapshot/$NAME/config.yaml: The snapshot test configuration file. See theConfigstruct defined insnapshot_test.gofor more information