core: Add schema to TestTestContext2Validate_interpolateMap

This commit is contained in:
Martin Atkins 2018-05-11 14:49:38 -07:00
parent fc7453c073
commit 7efa010f24
1 changed files with 9 additions and 0 deletions

View File

@ -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,