New 🌊 wave for @helm

Commit 79121a4f

79121a4f7101Merged

Sviatoslav Dumchenko <[email protected]> · 3 years ago · 16 files · ~16 modified

Description

chore: refactor into some constants

Details

Commit
79121a4f7101
Parent
441c0819d6a7

pkg/action/build_internal_test.gomodifiedView file

@@ -9,6 +9,7 @@
99
1010 "github.com/helmwave/helmwave/pkg/plan"
1111 "github.com/helmwave/helmwave/pkg/repo"
12+ "github.com/helmwave/helmwave/pkg/template"
1213 "github.com/helmwave/helmwave/tests"
1314 log "github.com/sirupsen/logrus"
1415 "github.com/stretchr/testify/suite"
@@ -28,7 +29,7 @@
2829 y := &Yml{
2930 tpl: filepath.Join(tests.Root, "01_helmwave.yml.tpl"),
3031 file: filepath.Join(tests.Root, "02_helmwave.yml"),
31- templater: "sprig",
32+ templater: template.TemplaterSprig,
3233 }
3334
3435 s := &Build{
@@ -65,7 +66,7 @@
6566 y := &Yml{
6667 tpl: filepath.Join(tests.Root, "01_helmwave.yml.tpl"),
6768 file: filepath.Join(tests.Root, "02_helmwave.yml"),
68- templater: "sprig",
69+ templater: template.TemplaterSprig,
6970 }
7071
7172 s := &Build{
@@ -92,7 +93,7 @@
9293 y := &Yml{
9394 tpl: filepath.Join(tests.Root, "01_helmwave.yml.tpl"),
9495 file: filepath.Join(tests.Root, "03_helmwave.yml"),
95- templater: "sprig",
96+ templater: template.TemplaterSprig,
9697 }
9798
9899 cases := []struct {
@@ -137,7 +138,7 @@
137138 y := &Yml{
138139 tpl: filepath.Join(tests.Root, "07_helmwave.yml"),
139140 file: filepath.Join(tests.Root, "07_helmwave.yml"),
140- templater: "sprig",
141+ templater: template.TemplaterSprig,
141142 }
142143
143144 s := &Build{
@@ -170,7 +171,7 @@
170171 y := &Yml{
171172 tpl: filepath.Join(tests.Root, "01_helmwave.yml.tpl"),
172173 file: filepath.Join(tmpDir, "01_auto_yaml_helmwave.yml"),
173- templater: "sprig",
174+ templater: template.TemplaterSprig,
174175 }
175176
176177 s := &Build{
@@ -195,7 +196,7 @@
195196 y := &Yml{
196197 tpl: filepath.Join(tests.Root, "08_helmwave.yml"),
197198 file: filepath.Join(tmpDir, "08_helmwave.yml"),
198- templater: "gomplate",
199+ templater: template.TemplaterGomplate,
199200 }
200201
201202 s := &Build{
@@ -217,7 +218,7 @@
217218 y := &Yml{
218219 tpl: filepath.Join(tests.Root, "13_helmwave.yml"),
219220 file: filepath.Join(tmpDir, "13_helmwave.yml"),
220- templater: "sprig",
221+ templater: template.TemplaterSprig,
221222 }
222223
223224 s := &Build{