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:
Christian Mesh
2024-11-05 18:08:23 -05:00
committed by GitHub
parent 3d4bf29c56
commit fd775f0fe3
98 changed files with 2371 additions and 468 deletions

View File

@@ -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,
)
})