@@ -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" ,
@@ -951,8 +943,8 @@ func TestTasksCreate(t *testing.T) {
951943 version := coderdtest .CreateTemplateVersion (t , client , user .OrganizationID , & echo.Responses {
952944 Parse : echo .ParseComplete ,
953945 ProvisionApply : echo .ApplyComplete ,
954- ProvisionPlan : []* proto.Response {
955- {Type : & proto.Response_Plan { Plan : & proto.PlanComplete {
946+ ProvisionGraph : []* proto.Response {
947+ {Type : & proto.Response_Graph { Graph : & proto.GraphComplete {
956948 HasAiTasks : true ,
957949 }}},
958950 },
@@ -995,8 +987,8 @@ func TestTasksCreate(t *testing.T) {
995987 version := coderdtest .CreateTemplateVersion (t , client , user .OrganizationID , & echo.Responses {
996988 Parse : echo .ParseComplete ,
997989 ProvisionApply : echo .ApplyComplete ,
998- ProvisionPlan : []* proto.Response {
999- {Type : & proto.Response_Plan { Plan : & proto.PlanComplete {
990+ ProvisionGraph : []* proto.Response {
991+ {Type : & proto.Response_Graph { Graph : & proto.GraphComplete {
1000992 Parameters : []* proto.RichParameter {{Name : codersdk .AITaskPromptParameterName , Type : "string" }},
1001993 HasAiTasks : true ,
1002994 }}},
@@ -1097,8 +1089,8 @@ func TestTasksCreate(t *testing.T) {
10971089 version = coderdtest .CreateTemplateVersion (t , client , user .OrganizationID , & echo.Responses {
10981090 Parse : echo .ParseComplete ,
10991091 ProvisionApply : echo .ApplyComplete ,
1100- ProvisionPlan : []* proto.Response {
1101- {Type : & proto.Response_Plan { Plan : & proto.PlanComplete {
1092+ ProvisionGraph : []* proto.Response {
1093+ {Type : & proto.Response_Graph { Graph : & proto.GraphComplete {
11021094 HasAiTasks : true ,
11031095 }}},
11041096 },
@@ -1218,8 +1210,8 @@ func TestTasksCreate(t *testing.T) {
12181210 version := coderdtest .CreateTemplateVersion (t , client , user .OrganizationID , & echo.Responses {
12191211 Parse : echo .ParseComplete ,
12201212 ProvisionApply : echo .ApplyComplete ,
1221- ProvisionPlan : []* proto.Response {
1222- {Type : & proto.Response_Plan { Plan : & proto.PlanComplete {
1213+ ProvisionGraph : []* proto.Response {
1214+ {Type : & proto.Response_Graph { Graph : & proto.GraphComplete {
12231215 HasAiTasks : true ,
12241216 }}},
12251217 },
@@ -1275,8 +1267,8 @@ func TestTasksCreate(t *testing.T) {
12751267 version := coderdtest .CreateTemplateVersion (t , client , user .OrganizationID , & echo.Responses {
12761268 Parse : echo .ParseComplete ,
12771269 ProvisionApply : echo .ApplyComplete ,
1278- ProvisionPlan : []* proto.Response {
1279- {Type : & proto.Response_Plan { Plan : & proto.PlanComplete {
1270+ ProvisionGraph : []* proto.Response {
1271+ {Type : & proto.Response_Graph { Graph : & proto.GraphComplete {
12801272 HasAiTasks : true ,
12811273 }}},
12821274 },
@@ -1309,8 +1301,8 @@ func TestTasksCreate(t *testing.T) {
13091301 version := coderdtest .CreateTemplateVersion (t , client , user .OrganizationID , & echo.Responses {
13101302 Parse : echo .ParseComplete ,
13111303 ProvisionApply : echo .ApplyComplete ,
1312- ProvisionPlan : []* proto.Response {
1313- {Type : & proto.Response_Plan { Plan : & proto.PlanComplete {
1304+ ProvisionGraph : []* proto.Response {
1305+ {Type : & proto.Response_Graph { Graph : & proto.GraphComplete {
13141306 HasAiTasks : true ,
13151307 }}},
13161308 },
@@ -1359,8 +1351,8 @@ func TestTasksCreate(t *testing.T) {
13591351 version1 := coderdtest .CreateTemplateVersion (t , client , user .OrganizationID , & echo.Responses {
13601352 Parse : echo .ParseComplete ,
13611353 ProvisionApply : echo .ApplyComplete ,
1362- ProvisionPlan : []* proto.Response {
1363- {Type : & proto.Response_Plan { Plan : & proto.PlanComplete {
1354+ ProvisionGraph : []* proto.Response {
1355+ {Type : & proto.Response_Graph { Graph : & proto.GraphComplete {
13641356 HasAiTasks : true ,
13651357 }}},
13661358 },
@@ -1371,8 +1363,8 @@ func TestTasksCreate(t *testing.T) {
13711363 version2 := coderdtest .UpdateTemplateVersion (t , client , user .OrganizationID , & echo.Responses {
13721364 Parse : echo .ParseComplete ,
13731365 ProvisionApply : echo .ApplyComplete ,
1374- ProvisionPlan : []* proto.Response {
1375- {Type : & proto.Response_Plan { Plan : & proto.PlanComplete {
1366+ ProvisionGraph : []* proto.Response {
1367+ {Type : & proto.Response_Graph { Graph : & proto.GraphComplete {
13761368 HasAiTasks : true ,
13771369 }}},
13781370 },
0 commit comments