From fe105bfc3f00dfe78bc9008aaebebbfa9cc3b48c Mon Sep 17 00:00:00 2001 From: Martin Atkins Date: Thu, 24 May 2018 18:35:44 -0700 Subject: [PATCH] core: Fix TestContext2Input_submoduleTriggersInvalidCount This test now needs to provide a mock schema so its fixture can assign to the "foo" argument in null_data_source. --- terraform/context_input_test.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/terraform/context_input_test.go b/terraform/context_input_test.go index 5495037162..72de23757d 100644 --- a/terraform/context_input_test.go +++ b/terraform/context_input_test.go @@ -767,6 +767,15 @@ func TestContext2Input_dataSourceRequiresRefresh(t *testing.T) { p := testProvider("null") m := testModule(t, "input-module-data-vars") + p.GetSchemaReturn = &ProviderSchema{ + DataSources: map[string]*configschema.Block{ + "null_data_source": { + Attributes: map[string]*configschema.Attribute{ + "foo": {Type: cty.List(cty.String), Optional: true}, + }, + }, + }, + } p.ReadDataDiffFn = testDataDiffFn state := &State{