Skip to content

Commit 25aa046

Browse files
committed
more tests
1 parent 3d3b293 commit 25aa046

File tree

5 files changed

+12
-16
lines changed

5 files changed

+12
-16
lines changed

cli/create_test.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1573,8 +1573,10 @@ func TestCreateValidateRichParameters(t *testing.T) {
15731573
func TestCreateWithGitAuth(t *testing.T) {
15741574
t.Parallel()
15751575
echoResponses := &echo.Responses{
1576-
Parse: echo.ParseComplete,
1577-
ProvisionPlan: []*proto.Response{
1576+
Parse: echo.ParseComplete,
1577+
ProvisionInit: echo.InitComplete,
1578+
ProvisionPlan: echo.PlanComplete,
1579+
ProvisionGraph: []*proto.Response{
15781580
{
15791581
Type: &proto.Response_Graph{
15801582
Graph: &proto.GraphComplete{

cli/restart_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ func TestRestartWithParameters(t *testing.T) {
306306
echoResponses := func() *echo.Responses {
307307
return &echo.Responses{
308308
Parse: echo.ParseComplete,
309-
ProvisionPlan: []*proto.Response{
309+
ProvisionGraph: []*proto.Response{
310310
{
311311
Type: &proto.Response_Graph{
312312
Graph: &proto.GraphComplete{

cli/start_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const (
3636
func mutableParamsResponse() *echo.Responses {
3737
return &echo.Responses{
3838
Parse: echo.ParseComplete,
39-
ProvisionPlan: []*proto.Response{
39+
ProvisionGraph: []*proto.Response{
4040
{
4141
Type: &proto.Response_Graph{
4242
Graph: &proto.GraphComplete{
@@ -59,7 +59,7 @@ func mutableParamsResponse() *echo.Responses {
5959
func immutableParamsResponse() *echo.Responses {
6060
return &echo.Responses{
6161
Parse: echo.ParseComplete,
62-
ProvisionPlan: []*proto.Response{
62+
ProvisionGraph: []*proto.Response{
6363
{
6464
Type: &proto.Response_Graph{
6565
Graph: &proto.GraphComplete{

cli/task_test.go

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -285,16 +285,7 @@ func createAITaskTemplate(t *testing.T, client *codersdk.Client, orgID uuid.UUID
285285
taskAppID := uuid.New()
286286
version := coderdtest.CreateTemplateVersion(t, client, orgID, &echo.Responses{
287287
Parse: echo.ParseComplete,
288-
ProvisionPlan: []*proto.Response{
289-
{
290-
Type: &proto.Response_Graph{
291-
Graph: &proto.GraphComplete{
292-
HasAiTasks: true,
293-
},
294-
},
295-
},
296-
},
297-
ProvisionApply: []*proto.Response{
288+
ProvisionGraph: []*proto.Response{
298289
{
299290
Type: &proto.Response_Graph{
300291
Graph: &proto.GraphComplete{
@@ -321,6 +312,7 @@ func createAITaskTemplate(t *testing.T, client *codersdk.Client, orgID uuid.UUID
321312
},
322313
},
323314
},
315+
HasAiTasks: true,
324316
AiTasks: []*proto.AITask{
325317
{
326318
AppId: taskAppID.String(),

provisioner/echo/serve_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ func TestEcho(t *testing.T) {
5656
},
5757
}
5858
data, err := echo.Tar(&echo.Responses{
59-
Parse: responses,
59+
Parse: responses,
60+
ProvisionInit: echo.InitComplete,
6061
})
6162
require.NoError(t, err)
6263
client, err := api.Session(ctx)
@@ -296,6 +297,7 @@ func TestEcho(t *testing.T) {
296297
},
297298
}}
298299
data, err := echo.Tar(&echo.Responses{
300+
ProvisionInit: echo.InitComplete,
299301
ProvisionPlan: echo.PlanComplete,
300302
ProvisionApply: echo.ApplyComplete,
301303
ProvisionGraph: responses,

0 commit comments

Comments
 (0)