diff options
Diffstat (limited to 'context/context_test.go')
-rw-r--r-- | context/context_test.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/context/context_test.go b/context/context_test.go index 4c95f058c0f1..8da30c9a89b0 100644 --- a/context/context_test.go +++ b/context/context_test.go @@ -140,3 +140,17 @@ func TestSubresourceVariableInheritanceOverride(t *testing.T) { t.Fail() } } + +func TestDefaultValuesLoading(t *testing.T) { + ctx, err := LoadContextFromFile("testdata/default-loading.yaml") + if err != nil { + t.Error(err) + t.Fail() + } + + rs := ctx.ResourceSets[0] + if rs.Values["defaultValues"] != "loaded" { + t.Errorf("Default values not loaded from YAML file") + t.Fail() + } +} |