@@ -213,18 +213,18 @@ func TestAdminServer(t *testing.T) {
213213 // Verify timestamps are epoch milliseconds
214214 timeBetweenMillis := timeBetween .UnixMilli ()
215215 for _ , wf := range workflows1 {
216- _ , ok := wf ["created_at " ].(float64 )
217- require .True (t , ok , "created_at should be a number" )
216+ _ , ok := wf ["CreatedAt " ].(float64 )
217+ require .True (t , ok , "CreatedAt should be a number" )
218218 }
219219 // Verify the timestamp is around timeBetween (within 2 seconds before or after)
220- assert .Less (t , int64 (workflows1 [0 ]["created_at " ].(float64 )), timeBetweenMillis , "first workflow CreatedAt should be before timeBetween" )
221- assert .Greater (t , int64 (workflows1 [1 ]["created_at " ].(float64 )), timeBetweenMillis , "second workflow CreatedAt should be before timeBetween" )
220+ assert .Less (t , int64 (workflows1 [0 ]["CreatedAt " ].(float64 )), timeBetweenMillis , "first workflow CreatedAt should be before timeBetween" )
221+ assert .Greater (t , int64 (workflows1 [1 ]["CreatedAt " ].(float64 )), timeBetweenMillis , "second workflow CreatedAt should be before timeBetween" )
222222
223223 // Verify both workflow IDs are present
224224 foundIDs1 := make (map [string ]bool )
225225 for _ , wf := range workflows1 {
226- id , ok := wf ["workflow_uuid " ].(string )
227- require .True (t , ok , "workflow_uuid should be a string" )
226+ id , ok := wf ["WorkflowUUID " ].(string )
227+ require .True (t , ok , "WorkflowUUID should be a string" )
228228 foundIDs1 [id ] = true
229229 }
230230 assert .True (t , foundIDs1 [workflowID1 ], "Expected to find first workflow ID in results" )
@@ -253,8 +253,8 @@ func TestAdminServer(t *testing.T) {
253253 assert .Equal (t , 1 , len (workflows2 ), "Expected exactly 1 workflow with start_time after timeBetween" )
254254
255255 // Verify it's the second workflow
256- id2 , ok := workflows2 [0 ]["workflow_uuid " ].(string )
257- require .True (t , ok , "workflow_uuid should be a string" )
256+ id2 , ok := workflows2 [0 ]["WorkflowUUID " ].(string )
257+ require .True (t , ok , "WorkflowUUID should be a string" )
258258 assert .Equal (t , workflowID2 , id2 , "Expected second workflow ID in results" )
259259
260260 // Also test end_time filter
@@ -280,8 +280,8 @@ func TestAdminServer(t *testing.T) {
280280 assert .Equal (t , 1 , len (workflows3 ), "Expected exactly 1 workflow with end_time before timeBetween" )
281281
282282 // Verify it's the first workflow
283- id3 , ok := workflows3 [0 ]["workflow_uuid " ].(string )
284- require .True (t , ok , "workflow_uuid should be a string" )
283+ id3 , ok := workflows3 [0 ]["WorkflowUUID " ].(string )
284+ require .True (t , ok , "WorkflowUUID should be a string" )
285285 assert .Equal (t , workflowID1 , id3 , "Expected first workflow ID in results" )
286286
287287 // Test 4: Query with empty body (should return all workflows)
@@ -304,8 +304,8 @@ func TestAdminServer(t *testing.T) {
304304 // Verify both workflow IDs are present
305305 foundIDs4 := make (map [string ]bool )
306306 for _ , wf := range workflows4 {
307- id , ok := wf ["workflow_uuid " ].(string )
308- require .True (t , ok , "workflow_uuid should be a string" )
307+ id , ok := wf ["WorkflowUUID " ].(string )
308+ require .True (t , ok , "WorkflowUUID should be a string" )
309309 foundIDs4 [id ] = true
310310 }
311311 assert .True (t , foundIDs4 [workflowID1 ], "Expected to find first workflow ID in empty body results" )
0 commit comments