@@ -61,19 +61,11 @@ func TestTasks(t *testing.T) {
6161 taskAppID := uuid .New ()
6262 version := coderdtest .CreateTemplateVersion (t , client , user .OrganizationID , & echo.Responses {
6363 Parse : echo .ParseComplete ,
64- ProvisionPlan : []* proto.Response {
64+ ProvisionGraph : []* proto.Response {
6565 {
66- Type : & proto.Response_Plan {
67- Plan : & proto.PlanComplete {
66+ Type : & proto.Response_Graph {
67+ Graph : & proto.GraphComplete {
6868 HasAiTasks : true ,
69- },
70- },
71- },
72- },
73- ProvisionApply : []* proto.Response {
74- {
75- Type : & proto.Response_Apply {
76- Apply : & proto.ApplyComplete {
7769 Resources : []* proto.Resource {
7870 {
7971 Name : "example" ,
@@ -945,8 +937,8 @@ func TestTasksCreate(t *testing.T) {
945937 version := coderdtest .CreateTemplateVersion (t , client , user .OrganizationID , & echo.Responses {
946938 Parse : echo .ParseComplete ,
947939 ProvisionApply : echo .ApplyComplete ,
948- ProvisionPlan : []* proto.Response {
949- {Type : & proto.Response_Plan { Plan : & proto.PlanComplete {
940+ ProvisionGraph : []* proto.Response {
941+ {Type : & proto.Response_Graph { Graph : & proto.GraphComplete {
950942 HasAiTasks : true ,
951943 }}},
952944 },
@@ -989,8 +981,8 @@ func TestTasksCreate(t *testing.T) {
989981 version := coderdtest .CreateTemplateVersion (t , client , user .OrganizationID , & echo.Responses {
990982 Parse : echo .ParseComplete ,
991983 ProvisionApply : echo .ApplyComplete ,
992- ProvisionPlan : []* proto.Response {
993- {Type : & proto.Response_Plan { Plan : & proto.PlanComplete {
984+ ProvisionGraph : []* proto.Response {
985+ {Type : & proto.Response_Graph { Graph : & proto.GraphComplete {
994986 Parameters : []* proto.RichParameter {{Name : codersdk .AITaskPromptParameterName , Type : "string" }},
995987 HasAiTasks : true ,
996988 }}},
@@ -1091,8 +1083,8 @@ func TestTasksCreate(t *testing.T) {
10911083 version = coderdtest .CreateTemplateVersion (t , client , user .OrganizationID , & echo.Responses {
10921084 Parse : echo .ParseComplete ,
10931085 ProvisionApply : echo .ApplyComplete ,
1094- ProvisionPlan : []* proto.Response {
1095- {Type : & proto.Response_Plan { Plan : & proto.PlanComplete {
1086+ ProvisionGraph : []* proto.Response {
1087+ {Type : & proto.Response_Graph { Graph : & proto.GraphComplete {
10961088 HasAiTasks : true ,
10971089 }}},
10981090 },
@@ -1212,8 +1204,8 @@ func TestTasksCreate(t *testing.T) {
12121204 version := coderdtest .CreateTemplateVersion (t , client , user .OrganizationID , & echo.Responses {
12131205 Parse : echo .ParseComplete ,
12141206 ProvisionApply : echo .ApplyComplete ,
1215- ProvisionPlan : []* proto.Response {
1216- {Type : & proto.Response_Plan { Plan : & proto.PlanComplete {
1207+ ProvisionGraph : []* proto.Response {
1208+ {Type : & proto.Response_Graph { Graph : & proto.GraphComplete {
12171209 HasAiTasks : true ,
12181210 }}},
12191211 },
@@ -1269,8 +1261,8 @@ func TestTasksCreate(t *testing.T) {
12691261 version := coderdtest .CreateTemplateVersion (t , client , user .OrganizationID , & echo.Responses {
12701262 Parse : echo .ParseComplete ,
12711263 ProvisionApply : echo .ApplyComplete ,
1272- ProvisionPlan : []* proto.Response {
1273- {Type : & proto.Response_Plan { Plan : & proto.PlanComplete {
1264+ ProvisionGraph : []* proto.Response {
1265+ {Type : & proto.Response_Graph { Graph : & proto.GraphComplete {
12741266 HasAiTasks : true ,
12751267 }}},
12761268 },
@@ -1303,8 +1295,8 @@ func TestTasksCreate(t *testing.T) {
13031295 version := coderdtest .CreateTemplateVersion (t , client , user .OrganizationID , & echo.Responses {
13041296 Parse : echo .ParseComplete ,
13051297 ProvisionApply : echo .ApplyComplete ,
1306- ProvisionPlan : []* proto.Response {
1307- {Type : & proto.Response_Plan { Plan : & proto.PlanComplete {
1298+ ProvisionGraph : []* proto.Response {
1299+ {Type : & proto.Response_Graph { Graph : & proto.GraphComplete {
13081300 HasAiTasks : true ,
13091301 }}},
13101302 },
@@ -1353,8 +1345,8 @@ func TestTasksCreate(t *testing.T) {
13531345 version1 := coderdtest .CreateTemplateVersion (t , client , user .OrganizationID , & echo.Responses {
13541346 Parse : echo .ParseComplete ,
13551347 ProvisionApply : echo .ApplyComplete ,
1356- ProvisionPlan : []* proto.Response {
1357- {Type : & proto.Response_Plan { Plan : & proto.PlanComplete {
1348+ ProvisionGraph : []* proto.Response {
1349+ {Type : & proto.Response_Graph { Graph : & proto.GraphComplete {
13581350 HasAiTasks : true ,
13591351 }}},
13601352 },
@@ -1365,8 +1357,8 @@ func TestTasksCreate(t *testing.T) {
13651357 version2 := coderdtest .UpdateTemplateVersion (t , client , user .OrganizationID , & echo.Responses {
13661358 Parse : echo .ParseComplete ,
13671359 ProvisionApply : echo .ApplyComplete ,
1368- ProvisionPlan : []* proto.Response {
1369- {Type : & proto.Response_Plan { Plan : & proto.PlanComplete {
1360+ ProvisionGraph : []* proto.Response {
1361+ {Type : & proto.Response_Graph { Graph : & proto.GraphComplete {
13701362 HasAiTasks : true ,
13711363 }}},
13721364 },
0 commit comments