mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-25 01:00:16 -05:00
Implement Provider for_each (#2105)
Signed-off-by: ollevche <ollevche@gmail.com> Signed-off-by: Christian Mesh <christianmesh1@gmail.com> Signed-off-by: Ronny Orot <ronny.orot@gmail.com> Signed-off-by: Martin Atkins <mart@degeneration.co.uk> Co-authored-by: ollevche <ollevche@gmail.com> Co-authored-by: Ronny Orot <ronny.orot@gmail.com> Co-authored-by: Martin Atkins <mart@degeneration.co.uk>
This commit is contained in:
@@ -34,6 +34,7 @@ func TestStateShow(t *testing.T) {
|
||||
Provider: addrs.NewDefaultProvider("test"),
|
||||
Module: addrs.RootModule,
|
||||
},
|
||||
addrs.NoKey,
|
||||
)
|
||||
})
|
||||
statePath := testStateFile(t, state)
|
||||
@@ -96,6 +97,7 @@ func TestStateShow_multi(t *testing.T) {
|
||||
Provider: addrs.NewDefaultProvider("test"),
|
||||
Module: addrs.RootModule,
|
||||
},
|
||||
addrs.NoKey,
|
||||
)
|
||||
s.SetResourceInstanceCurrent(
|
||||
addrs.Resource{
|
||||
@@ -111,6 +113,7 @@ func TestStateShow_multi(t *testing.T) {
|
||||
Provider: addrs.NewDefaultProvider("test"),
|
||||
Module: submod.Module(),
|
||||
},
|
||||
addrs.NoKey,
|
||||
)
|
||||
})
|
||||
statePath := testStateFile(t, state)
|
||||
@@ -222,6 +225,7 @@ func TestStateShow_configured_provider(t *testing.T) {
|
||||
Provider: addrs.NewDefaultProvider("test-beta"),
|
||||
Module: addrs.RootModule,
|
||||
},
|
||||
addrs.NoKey,
|
||||
)
|
||||
})
|
||||
statePath := testStateFile(t, state)
|
||||
@@ -364,6 +368,7 @@ func stateWithSensitiveValueForStateShow() *states.State {
|
||||
Provider: addrs.NewDefaultProvider("test"),
|
||||
Module: addrs.RootModule,
|
||||
},
|
||||
addrs.NoKey,
|
||||
)
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user