core: TestContext2Validate_interpolateMap
This commit is contained in:
parent
aa9d88ad3c
commit
555cd977f8
|
@ -635,6 +635,10 @@ func testProviderSchema(name string) *ProviderSchema {
|
|||
Type: cty.String,
|
||||
Optional: true,
|
||||
},
|
||||
"rendered": {
|
||||
Type: cty.String,
|
||||
Computed: true,
|
||||
},
|
||||
"__template_requires_new": {
|
||||
Type: cty.String,
|
||||
Optional: true,
|
||||
|
@ -681,6 +685,10 @@ func testProviderSchema(name string) *ProviderSchema {
|
|||
Type: cty.String,
|
||||
Optional: true,
|
||||
},
|
||||
"rendered": {
|
||||
Type: cty.String,
|
||||
Computed: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
@ -1154,18 +1154,9 @@ func TestContext2Validate_interpolateMap(t *testing.T) {
|
|||
input := new(MockUIInput)
|
||||
|
||||
m := testModule(t, "issue-9549")
|
||||
p := testProvider("null")
|
||||
p := testProvider("template")
|
||||
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,
|
||||
|
|
Loading…
Reference in New Issue