1
1
package state
2
2
3
3
import (
4
- "github.com/google/go-cmp/cmp"
5
- "github.com/roboll/helmfile/pkg/remote"
6
- "go.uber.org/zap"
7
4
"io/ioutil"
8
5
"path/filepath"
9
6
"testing"
7
+
8
+ "github.com/google/go-cmp/cmp"
9
+ "github.com/roboll/helmfile/pkg/remote"
10
+ "go.uber.org/zap"
10
11
)
11
12
12
13
func newLoader () * EnvironmentValuesLoader {
@@ -34,7 +35,7 @@ func newLoader() *EnvironmentValuesLoader {
34
35
func TestEnvValsLoad_SingleValuesFile (t * testing.T ) {
35
36
l := newLoader ()
36
37
37
- actual , err := l .LoadEnvironmentValues (nil , []interface {}{"testdata/values.5.yaml" })
38
+ actual , err := l .LoadEnvironmentValues (nil , []interface {}{"testdata/values.5.yaml" }, nil )
38
39
if err != nil {
39
40
t .Fatal (err )
40
41
}
@@ -52,7 +53,7 @@ func TestEnvValsLoad_SingleValuesFile(t *testing.T) {
52
53
func TestEnvValsLoad_OverwriteNilValue_Issue1150 (t * testing.T ) {
53
54
l := newLoader ()
54
55
55
- actual , err := l .LoadEnvironmentValues (nil , []interface {}{"testdata/values.1.yaml" , "testdata/values.2.yaml" })
56
+ actual , err := l .LoadEnvironmentValues (nil , []interface {}{"testdata/values.1.yaml" , "testdata/values.2.yaml" }, nil )
56
57
if err != nil {
57
58
t .Fatal (err )
58
59
}
@@ -74,7 +75,7 @@ func TestEnvValsLoad_OverwriteNilValue_Issue1150(t *testing.T) {
74
75
func TestEnvValsLoad_OverwriteWithNilValue_Issue1154 (t * testing.T ) {
75
76
l := newLoader ()
76
77
77
- actual , err := l .LoadEnvironmentValues (nil , []interface {}{"testdata/values.3.yaml" , "testdata/values.4.yaml" })
78
+ actual , err := l .LoadEnvironmentValues (nil , []interface {}{"testdata/values.3.yaml" , "testdata/values.4.yaml" }, nil )
78
79
if err != nil {
79
80
t .Fatal (err )
80
81
}
@@ -97,7 +98,7 @@ func TestEnvValsLoad_OverwriteWithNilValue_Issue1154(t *testing.T) {
97
98
func TestEnvValsLoad_OverwriteEmptyValue_Issue1168 (t * testing.T ) {
98
99
l := newLoader ()
99
100
100
- actual , err := l .LoadEnvironmentValues (nil , []interface {}{"testdata/issues/1168/addons.yaml" , "testdata/issues/1168/addons2.yaml" })
101
+ actual , err := l .LoadEnvironmentValues (nil , []interface {}{"testdata/issues/1168/addons.yaml" , "testdata/issues/1168/addons2.yaml" }, nil )
101
102
if err != nil {
102
103
t .Fatal (err )
103
104
}
0 commit comments