diff --git a/terraform/context_validate_test.go b/terraform/context_validate_test.go index 8cc07c81e..6635440e3 100644 --- a/terraform/context_validate_test.go +++ b/terraform/context_validate_test.go @@ -828,6 +828,15 @@ func TestContext2Validate_interpolateMap(t *testing.T) { p := testProvider("null") p.ApplyFn = testApplyFn p.DiffFn = testDiffFn + p.GetSchemaReturn = &ProviderSchema{ + ResourceTypes: map[string]*configschema.Block{ + "template_file": { + Attributes: map[string]*configschema.Attribute{ + "template": {Type: cty.String, Optional: true}, + }, + }, + }, + } ctx := testContext2(t, &ContextOpts{ Config: m,