core: fix TestContext2Apply_varsEnv

The expected output string for this test is assuming a couple computed
attributes that were not declared in schema. This didn't matter before
because the provider output was not previously subject to schema-based
interpretation, but now our shims to the old provider API rely on the
schema to convert the returned data and so any unexpected attributes are
filtered.
This commit is contained in:
Martin Atkins 2018-09-13 17:14:42 -07:00
parent 5802953ab6
commit 425d5cd191
1 changed files with 2 additions and 0 deletions

View File

@ -70,6 +70,8 @@ func contextFixtureApplyVarsEnv(t *testing.T) *contextTestFixture {
"string": {Type: cty.String, Optional: true}, "string": {Type: cty.String, Optional: true},
"list": {Type: cty.List(cty.String), Optional: true}, "list": {Type: cty.List(cty.String), Optional: true},
"map": {Type: cty.Map(cty.String), Optional: true}, "map": {Type: cty.Map(cty.String), Optional: true},
"id": {Type: cty.String, Computed: true},
"type": {Type: cty.String, Computed: true},
}, },
}) })
p.ApplyFn = testApplyFn p.ApplyFn = testApplyFn