Fix saved plan test regressions, fixtures

This commit is contained in:
Sebastian Rivera
2023-07-24 14:06:04 -04:00
parent 31cf55fe12
commit 08e58fd484
5 changed files with 127 additions and 6 deletions

View File

@@ -188,12 +188,12 @@ func (t *TestHuman) Run(run *moduletest.Run, file *moduletest.File) {
RelevantAttributes: attrs,
}
var opts []jsonformat.PlanRendererOpt
var opts []plans.Quality
if !run.Verbose.Plan.CanApply() {
opts = append(opts, jsonformat.CanNotApply)
opts = append(opts, plans.NoChanges)
}
if run.Verbose.Plan.Errored {
opts = append(opts, jsonformat.Errored)
opts = append(opts, plans.Errored)
}
renderer.RenderHumanPlan(plan, run.Verbose.Plan.UIMode, opts...)