File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ type listWorkflowsRequest struct {
3737 AuthenticatedUser * string `json:"authenticated_user"` // Filter by user who initiated the workflow
3838 StartTime * time.Time `json:"start_time"` // Filter workflows created after this time (RFC3339 format)
3939 EndTime * time.Time `json:"end_time"` // Filter workflows created before this time (RFC3339 format)
40- Status string `json:"status"` // Filter by workflow status(es)
40+ Status string `json:"status"` // Filter by workflow status
4141 ApplicationVersion * string `json:"application_version"` // Filter by application version
4242 WorkflowName * string `json:"workflow_name"` // Filter by workflow function name
4343 Limit * int `json:"limit"` // Maximum number of results to return
Original file line number Diff line number Diff line change @@ -170,11 +170,17 @@ func TestAdminServer(t *testing.T) {
170170 var workflows []map [string ]any
171171 err := json .NewDecoder (resp .Body ).Decode (& workflows )
172172 require .NoError (t , err , "Failed to decode workflows response" )
173- // We expect an empty array since these filters likely won't match any workflows
173+ // We expect an empty array -- there's no workflow in the db
174174 assert .NotNil (t , workflows , "Expected non-nil workflows array" )
175- // No error is success - the result can be empty
175+ assert . Empty ( t , workflows , "Expected empty workflows array" )
176176 },
177177 },
178+ {
179+ name : "Get single workflow returns 404 for non-existent workflow" ,
180+ method : "GET" ,
181+ endpoint : "http://localhost:3001/workflow/non-existent-workflow-id" ,
182+ expectedStatus : http .StatusNotFound ,
183+ },
178184 }
179185
180186 for _ , tt := range tests {
You can’t perform that action at this time.
0 commit comments