mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
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.
This commit is contained in:
parent
93ff9f4233
commit
fe105bfc3f
@ -767,6 +767,15 @@ func TestContext2Input_dataSourceRequiresRefresh(t *testing.T) {
|
|||||||
p := testProvider("null")
|
p := testProvider("null")
|
||||||
m := testModule(t, "input-module-data-vars")
|
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
|
p.ReadDataDiffFn = testDataDiffFn
|
||||||
|
|
||||||
state := &State{
|
state := &State{
|
||||||
|
Loading…
Reference in New Issue
Block a user