chore(context): Remove previous value override test

This commit is contained in:
Vincent Ambo 2018-06-26 12:25:42 +02:00 committed by Vincent Ambo
parent 2db3bbcdbe
commit 4a6f087fbf
2 changed files with 0 additions and 33 deletions

View file

@ -208,29 +208,6 @@ func TestImportValuesLoading(t *testing.T) {
}
}
func TestValuesOverride(t *testing.T) {
ctx, err := LoadContext("testdata/import-vars-override.yaml", &noExplicitVars)
if err != nil {
t.Error(err)
t.Fail()
}
expected := map[string]interface{}{
"override": float64(3),
"music": map[string]interface{}{
"artist": "Pallida",
"track": "Tractor Beam",
},
"place": "Oslo",
"globalVar": "very global!",
}
if !reflect.DeepEqual(ctx.ResourceSets[0].Values, expected) {
t.Error("Expected overrides after loading imports did not match!")
t.Fail()
}
}
func TestExplicitPathLoading(t *testing.T) {
ctx, err := LoadContext("testdata/explicit-path.yaml", &noExplicitVars)
if err != nil {

View file

@ -1,10 +0,0 @@
---
context: k8s.prod.mydomain.com
global:
globalVar: very global!
override: 1
import:
- test-vars.yaml
- test-vars-override.yaml
include:
- name: test-set