mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: distinct operations for provisioner's 'parse', 'init', 'plan', 'apply', 'graph' (#21064)
Provisioner steps broken into smaller granular actions. Changes: - `ExtractArchive` moved to `init` request (was in `configure`) - Writing `tfstate` moved to `plan` (was in `configure`) - Moved most plan/apply outputs to `GraphComplete`
This commit is contained in:
@@ -50,12 +50,24 @@ func DynamicParameterTemplate(t *testing.T, client *codersdk.Client, org uuid.UU
|
||||
}
|
||||
|
||||
files := echo.WithExtraFiles(extraFiles)
|
||||
files.ProvisionInit = []*proto.Response{{
|
||||
Type: &proto.Response_Init{
|
||||
Init: &proto.InitComplete{
|
||||
ModuleFiles: args.ModulesArchive,
|
||||
},
|
||||
},
|
||||
}}
|
||||
files.ProvisionPlan = []*proto.Response{{
|
||||
Type: &proto.Response_Plan{
|
||||
Plan: &proto.PlanComplete{
|
||||
Plan: args.Plan,
|
||||
ModuleFiles: args.ModulesArchive,
|
||||
Parameters: args.StaticParams,
|
||||
Plan: args.Plan,
|
||||
},
|
||||
},
|
||||
}}
|
||||
files.ProvisionGraph = []*proto.Response{{
|
||||
Type: &proto.Response_Graph{
|
||||
Graph: &proto.GraphComplete{
|
||||
Parameters: args.StaticParams,
|
||||
},
|
||||
},
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user