mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
core: Fix EvalWriteState tests
EvalWriteState now requires a provider address so that it can record the last-used provider configuration in the state.
This commit is contained in:
parent
dc7455887e
commit
9833d9991d
@ -150,6 +150,7 @@ func TestEvalWriteState(t *testing.T) {
|
||||
Name: "restype.resname",
|
||||
ResourceType: "restype",
|
||||
State: &is,
|
||||
Provider: addrs.RootModuleInstance.ProviderConfigDefault("res"),
|
||||
}
|
||||
_, err := node.Eval(ctx)
|
||||
if err != nil {
|
||||
@ -159,6 +160,7 @@ func TestEvalWriteState(t *testing.T) {
|
||||
checkStateString(t, state, `
|
||||
restype.resname:
|
||||
ID = i-abc123
|
||||
provider = provider.res
|
||||
`)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user