diff --git a/test/e2e/template/helmfile/snapshot_test.go b/test/e2e/template/helmfile/snapshot_test.go index 33a23515..dc6fbf90 100644 --- a/test/e2e/template/helmfile/snapshot_test.go +++ b/test/e2e/template/helmfile/snapshot_test.go @@ -224,7 +224,12 @@ func testHelmfileTemplateWithBuildCommand(t *testing.T, goccyGoYaml bool) { t.Logf("Using HELM_CACHE_HOME=%s, HELMFILE_CACHE_HOME=%s, HELM_CONFIG_HOME=%s", helmCacheHome, helmfileCacheHome, helmConfigHome) inputFile := filepath.Join(testdataDir, name, "input.yaml.gotmpl") - outputFile := filepath.Join(testdataDir, name, "output.yaml") + outputFile := "" + if goccyGoYaml { + outputFile = filepath.Join(testdataDir, name, "goccy-go-yaml-output.yaml") + } else { + outputFile = filepath.Join(testdataDir, name, "gopkg.in-yaml.v3-output.yaml") + } ctx, cancel := context.WithTimeout(context.Background(), 60*time.Second) defer cancel() diff --git a/test/e2e/template/helmfile/testdata/snapshot/issue_2098_release_template_needs/output.yaml b/test/e2e/template/helmfile/testdata/snapshot/issue_2098_release_template_needs/goccy-go-yaml-output.yaml similarity index 100% rename from test/e2e/template/helmfile/testdata/snapshot/issue_2098_release_template_needs/output.yaml rename to test/e2e/template/helmfile/testdata/snapshot/issue_2098_release_template_needs/goccy-go-yaml-output.yaml diff --git a/test/e2e/template/helmfile/testdata/snapshot/issue_2098_release_template_needs/gopkg.in-yaml.v3-output.yaml b/test/e2e/template/helmfile/testdata/snapshot/issue_2098_release_template_needs/gopkg.in-yaml.v3-output.yaml new file mode 100644 index 00000000..b28f5877 --- /dev/null +++ b/test/e2e/template/helmfile/testdata/snapshot/issue_2098_release_template_needs/gopkg.in-yaml.v3-output.yaml @@ -0,0 +1,37 @@ +--- +# Source: __workingdir__/testdata/snapshot/issue_2098_release_template_needs/input.yaml.gotmpl + +filepath: input.yaml.gotmpl +helmBinary: helm +kustomizeBinary: kustomize +environments: + default: {} +repositories: + - name: aservo + url: https://aservo.github.io/charts +releases: + - chart: aservo/util + version: 0.0.1 + name: default-shared-resources + namespace: default + labels: + chart: util + name: default-shared-resources + namespace: default + service: shared-resources + - chart: aservo/util + version: 0.0.1 + needs: + - default/default-shared-resources + name: default-release-resources + namespace: default + labels: + chart: util + name: default-release-resources + namespace: default + service: release-resources +templates: + defaults: + name: default-{{ .Release.Labels.service }} + namespace: default +renderedvalues: {}