Skip to content

Commit 07c65a9

Browse files
committed
more tests
1 parent 9e7fb7e commit 07c65a9

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

coderd/workspaces_test.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3392,8 +3392,10 @@ func TestWorkspaceWatcher(t *testing.T) {
33923392

33933393
// Add a new version that will fail.
33943394
badVersion := coderdtest.CreateTemplateVersion(t, client, user.OrganizationID, &echo.Responses{
3395-
Parse: echo.ParseComplete,
3396-
ProvisionPlan: echo.PlanComplete,
3395+
Parse: echo.ParseComplete,
3396+
ProvisionPlan: echo.PlanComplete,
3397+
ProvisionInit: echo.InitComplete,
3398+
ProvisionGraph: echo.GraphComplete,
33973399
ProvisionApply: []*proto.Response{{
33983400
Type: &proto.Response_Apply{
33993401
Apply: &proto.ApplyComplete{

enterprise/coderd/workspacequota_test.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,13 @@ func TestWorkspaceQuota(t *testing.T) {
121121
authToken := uuid.NewString()
122122
version := coderdtest.CreateTemplateVersion(t, client, user.OrganizationID, &echo.Responses{
123123
Parse: echo.ParseComplete,
124+
ProvisionPlan: []*proto.Response{{
125+
Type: &proto.Response_Plan{
126+
Plan: &proto.PlanComplete{
127+
DailyCost: 1,
128+
},
129+
},
130+
}},
124131
ProvisionGraph: []*proto.Response{{
125132
Type: &proto.Response_Graph{
126133
Graph: &proto.GraphComplete{

0 commit comments

Comments
 (0)