helmfile/test/e2e/template/helmfile
Yusuke Kuoka 4688cf0132
Use gopkg.in/yaml.v2 for Helmfile v0.x (#609)
This should fix #435 for Helmfile v0.x releases since the next v0.150.0.
We introduce a new envvar to opt-in to the new YAML library, so that you can give it a shot before upgrading your Helmfile to v1. The same envvar can be used to opt-out of the new YAML library after you upgrade to Helmfile v1, giving you a more flexible migration story.

Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
2023-01-04 18:17:24 +09:00
..
testdata Use gopkg.in/yaml.v2 for Helmfile v0.x (#609) 2023-01-04 18:17:24 +09:00
.gitignore hack: fix flaky e2e test 2022-09-02 18:36:27 +03:00
README.md Add integration test with local oci repo 2022-07-18 13:43:01 +00:00
snapshot_test.go Use gopkg.in/yaml.v2 for Helmfile v0.x (#609) 2023-01-04 18:17:24 +09:00
tmpl_test.go Introduce Helmfile's own filesystem abstraction to correctly unit test some components (#307) 2022-08-24 12:58:43 +09:00

README.md

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 charts
  • snapshot/$NAME/input.yaml: The input helmfile config for the test case of $NAME
  • snapshot/$NAME/output.yaml: The expected output of the helmfile command
  • snapshot/$NAME/config.yaml: The snapshot test configuration file. See the Config struct defined in snapshot_test.go for more information