From b9ff121ecb9383235dc24dcec062f0502178b681 Mon Sep 17 00:00:00 2001 From: yxxhero Date: Tue, 4 Feb 2025 20:27:23 +0800 Subject: [PATCH] fix tests Signed-off-by: yxxhero --- pkg/app/app_test.go | 1 + .../helmfiles/{no-envs.yaml => no-envs.yaml.gotmpl} | 0 .../helmfiles/{no-values.yaml => no-values.yaml.gotmpl} | 0 .../helmfiles/{prod.yaml => prod.yaml.gotmpl} | 0 .../helmfiles/{test.yaml => test.yaml.gotmpl} | 0 .../environment_missing_in_subhelmfile/input.yaml.gotmpl | 8 ++++---- 6 files changed, 5 insertions(+), 4 deletions(-) rename test/e2e/template/helmfile/testdata/snapshot/environment_missing_in_subhelmfile/helmfiles/{no-envs.yaml => no-envs.yaml.gotmpl} (100%) rename test/e2e/template/helmfile/testdata/snapshot/environment_missing_in_subhelmfile/helmfiles/{no-values.yaml => no-values.yaml.gotmpl} (100%) rename test/e2e/template/helmfile/testdata/snapshot/environment_missing_in_subhelmfile/helmfiles/{prod.yaml => prod.yaml.gotmpl} (100%) rename test/e2e/template/helmfile/testdata/snapshot/environment_missing_in_subhelmfile/helmfiles/{test.yaml => test.yaml.gotmpl} (100%) diff --git a/pkg/app/app_test.go b/pkg/app/app_test.go index 5dd421a8..ae4f3345 100644 --- a/pkg/app/app_test.go +++ b/pkg/app/app_test.go @@ -3927,6 +3927,7 @@ environments: values: - myrelease2: enabled: false +--- releases: - name: myrelease1 chart: mychart1 diff --git a/test/e2e/template/helmfile/testdata/snapshot/environment_missing_in_subhelmfile/helmfiles/no-envs.yaml b/test/e2e/template/helmfile/testdata/snapshot/environment_missing_in_subhelmfile/helmfiles/no-envs.yaml.gotmpl similarity index 100% rename from test/e2e/template/helmfile/testdata/snapshot/environment_missing_in_subhelmfile/helmfiles/no-envs.yaml rename to test/e2e/template/helmfile/testdata/snapshot/environment_missing_in_subhelmfile/helmfiles/no-envs.yaml.gotmpl diff --git a/test/e2e/template/helmfile/testdata/snapshot/environment_missing_in_subhelmfile/helmfiles/no-values.yaml b/test/e2e/template/helmfile/testdata/snapshot/environment_missing_in_subhelmfile/helmfiles/no-values.yaml.gotmpl similarity index 100% rename from test/e2e/template/helmfile/testdata/snapshot/environment_missing_in_subhelmfile/helmfiles/no-values.yaml rename to test/e2e/template/helmfile/testdata/snapshot/environment_missing_in_subhelmfile/helmfiles/no-values.yaml.gotmpl diff --git a/test/e2e/template/helmfile/testdata/snapshot/environment_missing_in_subhelmfile/helmfiles/prod.yaml b/test/e2e/template/helmfile/testdata/snapshot/environment_missing_in_subhelmfile/helmfiles/prod.yaml.gotmpl similarity index 100% rename from test/e2e/template/helmfile/testdata/snapshot/environment_missing_in_subhelmfile/helmfiles/prod.yaml rename to test/e2e/template/helmfile/testdata/snapshot/environment_missing_in_subhelmfile/helmfiles/prod.yaml.gotmpl diff --git a/test/e2e/template/helmfile/testdata/snapshot/environment_missing_in_subhelmfile/helmfiles/test.yaml b/test/e2e/template/helmfile/testdata/snapshot/environment_missing_in_subhelmfile/helmfiles/test.yaml.gotmpl similarity index 100% rename from test/e2e/template/helmfile/testdata/snapshot/environment_missing_in_subhelmfile/helmfiles/test.yaml rename to test/e2e/template/helmfile/testdata/snapshot/environment_missing_in_subhelmfile/helmfiles/test.yaml.gotmpl diff --git a/test/e2e/template/helmfile/testdata/snapshot/environment_missing_in_subhelmfile/input.yaml.gotmpl b/test/e2e/template/helmfile/testdata/snapshot/environment_missing_in_subhelmfile/input.yaml.gotmpl index 6b312364..05b9688c 100644 --- a/test/e2e/template/helmfile/testdata/snapshot/environment_missing_in_subhelmfile/input.yaml.gotmpl +++ b/test/e2e/template/helmfile/testdata/snapshot/environment_missing_in_subhelmfile/input.yaml.gotmpl @@ -4,13 +4,13 @@ environments: - test.yaml.gotmpl --- helmfiles: -- path: helmfiles/test.yaml +- path: helmfiles/test.yaml.gotmpl values: - envName: {{ .Values.envName }} -- path: helmfiles/prod.yaml +- path: helmfiles/prod.yaml.gotmpl values: - envName: {{ .Values.envName }} -- path: helmfiles/no-envs.yaml +- path: helmfiles/no-envs.yaml.gotmpl values: - envName: {{ .Values.envName }} -- path: helmfiles/no-values.yaml \ No newline at end of file +- path: helmfiles/no-values.yaml.gotmpl \ No newline at end of file