From 4a6f087fbfe84731db0a8e5084364ad0f6ad5212 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Tue, 26 Jun 2018 12:25:42 +0200 Subject: [PATCH] chore(context): Remove previous value override test --- context/context_test.go | 23 ---------------------- context/testdata/import-vars-override.yaml | 10 ---------- 2 files changed, 33 deletions(-) delete mode 100644 context/testdata/import-vars-override.yaml diff --git a/context/context_test.go b/context/context_test.go index 0af9dfc1c..e700cf419 100644 --- a/context/context_test.go +++ b/context/context_test.go @@ -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 { diff --git a/context/testdata/import-vars-override.yaml b/context/testdata/import-vars-override.yaml deleted file mode 100644 index c749a2a66..000000000 --- a/context/testdata/import-vars-override.yaml +++ /dev/null @@ -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