From 9833d9991dcd0da916ef8621332d4b99a7f08dae Mon Sep 17 00:00:00 2001 From: Martin Atkins Date: Fri, 11 May 2018 10:24:31 -0700 Subject: [PATCH] core: Fix EvalWriteState tests EvalWriteState now requires a provider address so that it can record the last-used provider configuration in the state. --- terraform/eval_state_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/terraform/eval_state_test.go b/terraform/eval_state_test.go index 4820ac2c0e..b4872c7f74 100644 --- a/terraform/eval_state_test.go +++ b/terraform/eval_state_test.go @@ -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 `) }