@@ -384,7 +384,7 @@ func TestListSchedulerFinishedOperations(t *testing.T) {
384384 require .NoError (t , err )
385385 }
386386
387- operationsReturned , total , err := storage .ListSchedulerFinishedOperations (context .Background (), schedulerName , page , pageSize )
387+ operationsReturned , total , err := storage .ListSchedulerFinishedOperations (context .Background (), schedulerName , page , pageSize , "desc" )
388388 assert .NoError (t , err )
389389 assert .NotEmptyf (t , operationsReturned , "expected at least one operation" )
390390 assert .Equal (t , expectedOperations , operationsReturned )
@@ -424,7 +424,7 @@ func TestListSchedulerFinishedOperations(t *testing.T) {
424424 require .NoError (t , err )
425425 }
426426
427- operationsReturned , total , err := storage .ListSchedulerFinishedOperations (context .Background (), schedulerName , page , pageSize )
427+ operationsReturned , total , err := storage .ListSchedulerFinishedOperations (context .Background (), schedulerName , page , pageSize , "desc" )
428428 assert .NoError (t , err )
429429 assert .NotEmptyf (t , operationsReturned , "expected at least one operation" )
430430 assert .Equal (t , expectedOperations , operationsReturned )
@@ -463,7 +463,7 @@ func TestListSchedulerFinishedOperations(t *testing.T) {
463463 require .NoError (t , err )
464464 }
465465
466- operationsReturned , total , err := storage .ListSchedulerFinishedOperations (context .Background (), schedulerName , page , pageSize )
466+ operationsReturned , total , err := storage .ListSchedulerFinishedOperations (context .Background (), schedulerName , page , pageSize , "" )
467467 assert .NoError (t , err )
468468 assert .Empty (t , operationsReturned , "expected result to be empty" )
469469 assert .Equal (t , int64 (4 ), total )
@@ -476,7 +476,7 @@ func TestListSchedulerFinishedOperations(t *testing.T) {
476476 definitionProvider , _ := createOperationDefinitionProvider (t )
477477 storage := NewRedisOperationStorage (client , clock , operationsTTLMap , definitionProvider )
478478
479- operationsReturned , total , err := storage .ListSchedulerFinishedOperations (context .Background (), schedulerName , 0 , 10 )
479+ operationsReturned , total , err := storage .ListSchedulerFinishedOperations (context .Background (), schedulerName , 0 , 10 , "" )
480480 assert .NoError (t , err )
481481 assert .Empty (t , operationsReturned , "expected result to be empty" )
482482 assert .Equal (t , int64 (0 ), total )
@@ -497,7 +497,7 @@ func TestListSchedulerFinishedOperations(t *testing.T) {
497497 require .NoError (t , err )
498498 }
499499
500- operationsReturned , _ , err := storage .ListSchedulerFinishedOperations (context .Background (), schedulerName , 0 , 10 )
500+ operationsReturned , _ , err := storage .ListSchedulerFinishedOperations (context .Background (), schedulerName , 0 , 10 , "" )
501501 assert .NoError (t , err )
502502 assert .Empty (t , operationsReturned )
503503 ids , _ := client .ZRange (context .Background (), storage .buildSchedulerHistoryOperationsKey (schedulerName ), 0 , - 1 ).Result ()
@@ -557,7 +557,7 @@ func TestListSchedulerFinishedOperations(t *testing.T) {
557557 require .NoError (t , err )
558558 }
559559
560- _ , _ , err := storage .ListSchedulerFinishedOperations (context .Background (), schedulerName , 0 , 10 )
560+ _ , _ , err := storage .ListSchedulerFinishedOperations (context .Background (), schedulerName , 0 , 10 , "" )
561561 assert .ErrorContains (t , err , "failed to build operation from the hash: failed to parse operation status: strconv.Atoi: parsing \" \" : invalid syntax" )
562562 })
563563
@@ -568,7 +568,7 @@ func TestListSchedulerFinishedOperations(t *testing.T) {
568568 definitionProvider , _ := createOperationDefinitionProvider (t )
569569 storage := NewRedisOperationStorage (client , clock , operationsTTLMap , definitionProvider )
570570 client .Close ()
571- _ , _ , err := storage .ListSchedulerFinishedOperations (context .Background (), schedulerName , 0 , 10 )
571+ _ , _ , err := storage .ListSchedulerFinishedOperations (context .Background (), schedulerName , 0 , 10 , "" )
572572 assert .ErrorContains (t , err , "failed to clean scheduler expired operations: failed to list operations for \" test-scheduler\" when trying to clean expired operations" )
573573 })
574574 })
@@ -1113,7 +1113,7 @@ func TestCleanOperationsHistory(t *testing.T) {
11131113 definitionProvider , _ := createOperationDefinitionProvider (t )
11141114 storage := NewRedisOperationStorage (client , clock , operationsTTLMap , definitionProvider )
11151115
1116- operationsReturned , total , err := storage .ListSchedulerFinishedOperations (context .Background (), schedulerName , 0 , 10 )
1116+ operationsReturned , total , err := storage .ListSchedulerFinishedOperations (context .Background (), schedulerName , 0 , 10 , "" )
11171117 assert .NoError (t , err )
11181118 assert .Empty (t , operationsReturned )
11191119 assert .Equal (t , total , int64 (0 ))
0 commit comments