mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-29 10:21:01 -06:00
Make sure test has a valid ResourceState
Empty resources are now pruned more aggressively, so make sure there is a valid ResourceState in the test ModuleState.
This commit is contained in:
parent
7715bc8423
commit
9616618de1
@ -71,7 +71,11 @@ func TestCacheState_RefreshState(t *testing.T) {
|
||||
&terraform.ModuleState{
|
||||
Path: terraform.RootModulePath,
|
||||
Resources: map[string]*terraform.ResourceState{
|
||||
"foo.foo": &terraform.ResourceState{},
|
||||
"foo.foo": &terraform.ResourceState{
|
||||
Primary: &terraform.InstanceState{
|
||||
ID: "ID",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user