RunHeader:"[reset][yellow]To view this run in a browser, visit:\nhttps://app.terraform.io/app/example_org/example_workspace/runs/run-run-bugsBUGSbugsBUGS[reset]",
RunFooter:"[reset][green]Run status: planned and saved (confirmable)[reset]\n[green]Workspace is unlocked[reset]",
t.Fatalf("couldn't read json plan test data at %s for showing a cloud plan. Did the file get moved?",unredactedPath)
}
testCases:=map[string]struct{
plan*plans.Plan
jsonPlan*cloudplan.RemotePlanJSON
stateFile*statefile.File
}{
"plan file":{
testPlan(t),
nil,
nil,
},
"cloud plan file":{
nil,
&cloudplan.RemotePlanJSON{
JSONBytes:unredactedPlanJson,
Redacted:false,
Mode:plans.NormalMode,
Qualities:[]plans.Quality{},
RunHeader:"[reset][yellow]To view this run in a browser, visit:\nhttps://app.terraform.io/app/example_org/example_workspace/runs/run-run-bugsBUGSbugsBUGS[reset]",
RunFooter:"[reset][green]Run status: planned and saved (confirmable)[reset]\n[green]Workspace is unlocked[reset]",