|
|
@ -19,6 +19,8 @@ package values
|
|
|
|
import (
|
|
|
|
import (
|
|
|
|
"reflect"
|
|
|
|
"reflect"
|
|
|
|
"testing"
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
"helm.sh/helm/v3/pkg/getter"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
func TestMergeValues(t *testing.T) {
|
|
|
|
func TestMergeValues(t *testing.T) {
|
|
|
@ -75,3 +77,12 @@ func TestMergeValues(t *testing.T) {
|
|
|
|
t.Errorf("Expected a map with different keys to merge properly with another map. Expected: %v, got %v", expectedMap, testMap)
|
|
|
|
t.Errorf("Expected a map with different keys to merge properly with another map. Expected: %v, got %v", expectedMap, testMap)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func TestReadFile(t *testing.T) {
|
|
|
|
|
|
|
|
var p getter.Providers
|
|
|
|
|
|
|
|
filePath := "%a.txt"
|
|
|
|
|
|
|
|
_, err := readFile(filePath, p)
|
|
|
|
|
|
|
|
if err == nil {
|
|
|
|
|
|
|
|
t.Errorf("Expected error when has special strings")
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|