@@ -26,7 +26,7 @@ func TestPostWorkspaceHistoryByUser(t *testing.T) {
2626 workspace := coderdtest .CreateWorkspace (t , client , "me" , project .ID )
2727 _ , err := client .CreateWorkspaceHistory (context .Background (), "" , workspace .Name , coderd.CreateWorkspaceHistoryRequest {
2828 ProjectVersionID : uuid .New (),
29- Transition : database .WorkspaceTransitionCreate ,
29+ Transition : database .WorkspaceTransitionStart ,
3030 })
3131 require .Error (t , err )
3232 var apiErr * codersdk.Error
@@ -47,7 +47,7 @@ func TestPostWorkspaceHistoryByUser(t *testing.T) {
4747 workspace := coderdtest .CreateWorkspace (t , client , "me" , project .ID )
4848 _ , err := client .CreateWorkspaceHistory (context .Background (), "" , workspace .Name , coderd.CreateWorkspaceHistoryRequest {
4949 ProjectVersionID : version .ID ,
50- Transition : database .WorkspaceTransitionCreate ,
50+ Transition : database .WorkspaceTransitionStart ,
5151 })
5252 require .Error (t , err )
5353 var apiErr * codersdk.Error
@@ -68,12 +68,12 @@ func TestPostWorkspaceHistoryByUser(t *testing.T) {
6868 workspace := coderdtest .CreateWorkspace (t , client , "me" , project .ID )
6969 _ , err := client .CreateWorkspaceHistory (context .Background (), "" , workspace .Name , coderd.CreateWorkspaceHistoryRequest {
7070 ProjectVersionID : version .ID ,
71- Transition : database .WorkspaceTransitionCreate ,
71+ Transition : database .WorkspaceTransitionStart ,
7272 })
7373 require .NoError (t , err )
7474 _ , err = client .CreateWorkspaceHistory (context .Background (), "" , workspace .Name , coderd.CreateWorkspaceHistoryRequest {
7575 ProjectVersionID : version .ID ,
76- Transition : database .WorkspaceTransitionCreate ,
76+ Transition : database .WorkspaceTransitionStart ,
7777 })
7878 require .Error (t , err )
7979 var apiErr * codersdk.Error
@@ -92,13 +92,13 @@ func TestPostWorkspaceHistoryByUser(t *testing.T) {
9292 workspace := coderdtest .CreateWorkspace (t , client , "me" , project .ID )
9393 firstHistory , err := client .CreateWorkspaceHistory (context .Background (), "" , workspace .Name , coderd.CreateWorkspaceHistoryRequest {
9494 ProjectVersionID : version .ID ,
95- Transition : database .WorkspaceTransitionCreate ,
95+ Transition : database .WorkspaceTransitionStart ,
9696 })
9797 require .NoError (t , err )
9898 coderdtest .AwaitWorkspaceHistoryProvisioned (t , client , "me" , workspace .Name , firstHistory .Name )
9999 secondHistory , err := client .CreateWorkspaceHistory (context .Background (), "" , workspace .Name , coderd.CreateWorkspaceHistoryRequest {
100100 ProjectVersionID : version .ID ,
101- Transition : database .WorkspaceTransitionCreate ,
101+ Transition : database .WorkspaceTransitionStart ,
102102 })
103103 require .NoError (t , err )
104104 require .Equal (t , firstHistory .ID .String (), secondHistory .BeforeID .String ())
@@ -135,7 +135,7 @@ func TestWorkspaceHistoryByUser(t *testing.T) {
135135 workspace := coderdtest .CreateWorkspace (t , client , "me" , project .ID )
136136 _ , err := client .CreateWorkspaceHistory (context .Background (), "" , workspace .Name , coderd.CreateWorkspaceHistoryRequest {
137137 ProjectVersionID : version .ID ,
138- Transition : database .WorkspaceTransitionCreate ,
138+ Transition : database .WorkspaceTransitionStart ,
139139 })
140140 require .NoError (t , err )
141141 history , err := client .ListWorkspaceHistory (context .Background (), "me" , workspace .Name )
@@ -156,7 +156,7 @@ func TestWorkspaceHistoryByName(t *testing.T) {
156156 workspace := coderdtest .CreateWorkspace (t , client , "me" , project .ID )
157157 history , err := client .CreateWorkspaceHistory (context .Background (), "" , workspace .Name , coderd.CreateWorkspaceHistoryRequest {
158158 ProjectVersionID : version .ID ,
159- Transition : database .WorkspaceTransitionCreate ,
159+ Transition : database .WorkspaceTransitionStart ,
160160 })
161161 require .NoError (t , err )
162162 _ , err = client .WorkspaceHistory (context .Background (), "me" , workspace .Name , history .Name )
0 commit comments