diff --git a/internal/http/html/static/templates/content/workspace_edit.tmpl b/internal/http/html/static/templates/content/workspace_edit.tmpl index f6f4912fd..bffeeaaf1 100644 --- a/internal/http/html/static/templates/content/workspace_edit.tmpl +++ b/internal/http/html/static/templates/content/workspace_edit.tmpl @@ -58,7 +58,7 @@
diff --git a/internal/runner/job_test.go b/internal/runner/job_test.go index 72aebe78f..653cc9549 100644 --- a/internal/runner/job_test.go +++ b/internal/runner/job_test.go @@ -6,34 +6,6 @@ import ( "github.com/stretchr/testify/assert" ) -func Test_jobSpecFromString(t *testing.T) { - tests := []struct { - spec string - want JobSpec - wantErr error - }{ - { - spec: "run-grDQCjrQne1EUIGW/plan", - want: JobSpec{RunID: resource.ParseID("run-grDQCjrQne1EUIGW", Phase: "plan")}, - }, - { - spec: "grDQCjrQne1EUIGW/plan", - wantErr: ErrMalformedJobSpecString, - }, - { - spec: "run-grDQCjrQne1EUIGW", - wantErr: ErrMalformedJobSpecString, - }, - } - for _, tt := range tests { - t.Run(tt.spec, func(t *testing.T) { - got, err := jobSpecFromString(tt.spec) - assert.Equal(t, tt.wantErr, err) - assert.Equal(t, tt.want, got) - }) - } -} - func TestJob_updateStatus(t *testing.T) { tests := []struct { name string diff --git a/internal/runner/web.go b/internal/runner/web.go index d09dfcda9..c9dac7c04 100644 --- a/internal/runner/web.go +++ b/internal/runner/web.go @@ -324,7 +324,7 @@ func (h *webHandlers) deleteAgentPool(w http.ResponseWriter, r *http.Request) { func (h *webHandlers) listAllowedPools(w http.ResponseWriter, r *http.Request) { var opts struct { WorkspaceID resource.ID `schema:"workspace_id,required"` - AgentPoolID resource.ID `schema:"agent_pool_id,required"` + AgentPoolID resource.ID `schema:"agent_pool_id"` } if err := decode.All(&opts, r); err != nil { h.Error(w, err.Error(), http.StatusUnprocessableEntity)