New ๐ŸŒŠ wave for @helm

Commit d70d3731

d70d37312855Merged

zhilyaev <[email protected]> ยท 5 years ago ยท 2 files ยท +1 added ยท ~1 modified

Description

with const

Details

Commit
d70d37312855
Parent
5bef2cc95032

pkg/action/yml_test.gomodifiedView file

@@ -2,21 +2,18 @@
22
33 import (
44 "github.com/helmwave/helmwave/pkg/plan"
5+ "github.com/helmwave/helmwave/tests"
56 "os"
67 "testing"
78 )
89
910 func Test01(t *testing.T) {
10- root := "../../action/"
11- from := root + "01_helmwave.yml.tpl"
12- to := root + "01_helmwave.yml"
13- value := "test"
14-
1511 s := &Yml{
16- from,
17- to,
12+ tests.Root + "01_helmwave.yml.tpl",
13+ tests.Root + "01_helmwave.yml",
1814 }
1915
16+ value := "test"
2017 _ = os.Setenv("PROJECT_NAME", value)
2118 _ = os.Setenv("NAMESPACE", value)
2219
@@ -26,7 +23,7 @@
2623 t.Error(err)
2724 }
2825
29- b, err := plan.NewBody(to)
26+ b, err := plan.NewBody(s.to)
3027 if err != nil {
3128 t.Error(err)
3229 }