From 425d5cd19137113d9f0ca2c8b348078b37674060 Mon Sep 17 00:00:00 2001 From: Martin Atkins Date: Thu, 13 Sep 2018 17:14:42 -0700 Subject: [PATCH] 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. --- terraform/context_fixtures_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/terraform/context_fixtures_test.go b/terraform/context_fixtures_test.go index 3dc2d49e9..b0884a4f5 100644 --- a/terraform/context_fixtures_test.go +++ b/terraform/context_fixtures_test.go @@ -70,6 +70,8 @@ func contextFixtureApplyVarsEnv(t *testing.T) *contextTestFixture { "string": {Type: cty.String, Optional: true}, "list": {Type: cty.List(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