@@ -301,6 +301,7 @@ export const MockWorkspaceAgent: TypesGen.WorkspaceAgent = {
301
301
} ,
302
302
connection_timeout_seconds : 120 ,
303
303
troubleshooting_url : "https://coder.com/troubleshoot" ,
304
+ lifecycle_state : "starting" ,
304
305
}
305
306
306
307
export const MockWorkspaceAgentDisconnected : TypesGen . WorkspaceAgent = {
@@ -310,6 +311,7 @@ export const MockWorkspaceAgentDisconnected: TypesGen.WorkspaceAgent = {
310
311
status : "disconnected" ,
311
312
version : "" ,
312
313
latency : { } ,
314
+ lifecycle_state : "ready" ,
313
315
}
314
316
315
317
export const MockWorkspaceAgentOutdated : TypesGen . WorkspaceAgent = {
@@ -333,6 +335,7 @@ export const MockWorkspaceAgentOutdated: TypesGen.WorkspaceAgent = {
333
335
latency_ms : 221.66 ,
334
336
} ,
335
337
} ,
338
+ lifecycle_state : "ready" ,
336
339
}
337
340
338
341
export const MockWorkspaceAgentConnecting : TypesGen . WorkspaceAgent = {
@@ -342,6 +345,7 @@ export const MockWorkspaceAgentConnecting: TypesGen.WorkspaceAgent = {
342
345
status : "connecting" ,
343
346
version : "" ,
344
347
latency : { } ,
348
+ lifecycle_state : "created" ,
345
349
}
346
350
347
351
export const MockWorkspaceAgentTimeout : TypesGen . WorkspaceAgent = {
@@ -351,6 +355,28 @@ export const MockWorkspaceAgentTimeout: TypesGen.WorkspaceAgent = {
351
355
status : "timeout" ,
352
356
version : "" ,
353
357
latency : { } ,
358
+ lifecycle_state : "created" ,
359
+ }
360
+
361
+ export const MockWorkspaceAgentStarting : TypesGen . WorkspaceAgent = {
362
+ ...MockWorkspaceAgent ,
363
+ id : "test-workspace-agent-starting" ,
364
+ name : "a-starting-workspace-agent" ,
365
+ lifecycle_state : "starting" ,
366
+ }
367
+
368
+ export const MockWorkspaceAgentStartTimeout : TypesGen . WorkspaceAgent = {
369
+ ...MockWorkspaceAgent ,
370
+ id : "test-workspace-agent-start-timeout" ,
371
+ name : "a-workspace-agent-timed-out-while-running-startup-script" ,
372
+ lifecycle_state : "start_timeout" ,
373
+ }
374
+
375
+ export const MockWorkspaceAgentStartError : TypesGen . WorkspaceAgent = {
376
+ ...MockWorkspaceAgent ,
377
+ id : "test-workspace-agent-start-error" ,
378
+ name : "a-workspace-agent-errored-while-running-startup-script" ,
379
+ lifecycle_state : "start_error" ,
354
380
}
355
381
356
382
export const MockWorkspaceResource : TypesGen . WorkspaceResource = {
0 commit comments