stacks: add dependency lock to new test case

TF-17949
Daniel Schmidt 2 years ago
parent bf5037fa05
commit 4f401d9cd3
No known key found for this signature in database
GPG Key ID: 377C3A4D62FBBBE2

@ -963,6 +963,14 @@ func TestApplyWithStateManipulation(t *testing.T) {
t.Fatal(err)
}
lock := depsfile.NewLocks()
lock.SetProvider(
addrs.NewDefaultProvider("testing"),
providerreqs.MustParseVersion("0.0.0"),
providerreqs.MustParseVersionConstraints("=0.0.0"),
providerreqs.PreferredHashes([]providerreqs.Hash{}),
)
tcs := map[string]struct {
state *stackstate.State
store *stacks_testing_provider.ResourceStore
@ -1130,6 +1138,7 @@ func TestApplyWithStateManipulation(t *testing.T) {
InputValues: inputs,
ForcePlanTimestamp: &fakePlanTimestamp,
PrevState: tc.state,
DependencyLocks: *lock,
}
planResp := PlanResponse{
PlannedChanges: planChangeCh,
@ -1175,6 +1184,7 @@ func TestApplyWithStateManipulation(t *testing.T) {
Config: cfg,
RawPlan: raw,
ProviderFactories: providers,
DependencyLocks: *lock,
}
applyResp := ApplyResponse{
AppliedChanges: applyChangesCh,

Loading…
Cancel
Save