File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import {
11
11
WorkspaceBuildTransition ,
12
12
WorkspaceResource ,
13
13
} from "../api/types"
14
- import { AuthMethods } from "../api/typesGenerated"
14
+ import { AuthMethods , ProvisionerJobStatus } from "../api/typesGenerated"
15
15
16
16
export const MockSessionToken = { session_token : "my-session-token" }
17
17
@@ -81,9 +81,20 @@ export const MockWorkspaceAutostopEnabled: WorkspaceAutostartRequest = {
81
81
schedule : "CRON_TZ=America/Toronto 30 21 * * 1-5" ,
82
82
}
83
83
84
+ export const MockProvisionerJob = {
85
+ id : "test-provisioner-job" ,
86
+ created_at : "" ,
87
+ started_at : "" ,
88
+ completed_at : "" ,
89
+ error : "" ,
90
+ status : "succeeded" as ProvisionerJobStatus ,
91
+ worker_id : "test-worker-id"
92
+ }
93
+
84
94
export const MockWorkspaceBuild = {
85
95
id : "test-workspace-build" ,
86
96
transition : "start" as WorkspaceBuildTransition ,
97
+ job : MockProvisionerJob
87
98
}
88
99
89
100
// These are special cases of MockWorkspaceBuild for more precise testing
You can’t perform that action at this time.
0 commit comments