fix tests

Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
yxxhero 2025-02-04 08:49:45 +08:00 committed by yxxhero
parent c8b04ade32
commit 26ec463543
1 changed files with 4 additions and 4 deletions

View File

@ -813,7 +813,7 @@ helmfiles:
values: values:
- env.values.yaml - env.values.yaml
`, `,
"/path/to/helmfile.d/a1.yaml": ` "/path/to/helmfile.d/a1.yaml.gotmpl": `
environments: environments:
default: default:
values: values:
@ -824,7 +824,7 @@ releases:
chart: stable/zipkin chart: stable/zipkin
namespace: {{ .Environment.Values.ns }} namespace: {{ .Environment.Values.ns }}
`, `,
"/path/to/helmfile.d/b.yaml": ` "/path/to/helmfile.d/b.yaml.gotmpl": `
environments: environments:
default: default:
values: values:
@ -834,7 +834,7 @@ releases:
chart: stable/grafana chart: stable/grafana
namespace: {{ .Environment.Values.ns }} namespace: {{ .Environment.Values.ns }}
`, `,
"/path/to/helmfile.d/c.yaml": ` "/path/to/helmfile.d/c.yaml.gotmpl": `
environments: environments:
default: default:
values: values:
@ -1080,7 +1080,7 @@ func TestVisitDesiredStatesWithReleasesFiltered_StateValueOverrides(t *testing.T
testcase := testcases[i] testcase := testcases[i]
t.Run(fmt.Sprintf("case %d", i), func(t *testing.T) { t.Run(fmt.Sprintf("case %d", i), func(t *testing.T) {
files := map[string]string{ files := map[string]string{
"/path/to/helmfile.yaml": fmt.Sprintf(` "/path/to/helmfile.yaml.gotmpl": fmt.Sprintf(`
# The top-level "values" are "base" values has inherited to state values with the lowest priority. # The top-level "values" are "base" values has inherited to state values with the lowest priority.
# The lowest priority results in environment-specific values to override values defined in the base. # The lowest priority results in environment-specific values to override values defined in the base.
values: values: