@@ -152,6 +152,7 @@ func TestGetBatchActions_OK(t *testing.T) {
152152 assert .Equal (t , int64 (2 ), resp .About .Count )
153153 assert .Len (t , resp .Items , 2 )
154154 assert .Equal (t , "task-1" , resp .Items [0 ].Id )
155+ assert .Equal (t , testSymbol , resp .Items [0 ].Owner )
155156 assert .Equal (t , "https://example.com/batch_actions/task-1/events" , resp .Items [0 ].EventsLink )
156157 assert .Equal (t , schedoapi .EmailPullslips , resp .Items [0 ].ActionName )
157158 assert .Equal (t , "title=test" , resp .Items [0 ].BatchQuery )
@@ -360,6 +361,7 @@ func TestPostBatchActions_OK(t *testing.T) {
360361 var resp schedoapi.BatchAction
361362 assert .NoError (t , json .Unmarshal (rr .Body .Bytes (), & resp ))
362363 assert .NotEmpty (t , resp .Id )
364+ assert .Equal (t , testSymbol , resp .Owner )
363365 assert .Equal (t , validRrule , resp .Schedule )
364366 assert .Equal (t , "title=test" , resp .BatchQuery )
365367 assert .True (t , resp .Active )
@@ -427,6 +429,7 @@ func TestPostBatchActions_MasterWithoutSymbolCreatesUnrestrictedAction(t *testin
427429 var resp schedoapi.BatchAction
428430 assert .NoError (t , json .Unmarshal (rr .Body .Bytes (), & resp ))
429431 assert .Equal (t , schedoapi .RequestAging , resp .ActionName )
432+ assert .Empty (t , resp .Owner )
430433 repo .AssertExpectations (t )
431434}
432435
@@ -555,6 +558,7 @@ func TestGetBatchActionsId_OK(t *testing.T) {
555558 var resp schedoapi.BatchAction
556559 assert .NoError (t , json .Unmarshal (rr .Body .Bytes (), & resp ))
557560 assert .Equal (t , "task-1" , resp .Id )
561+ assert .Equal (t , testSymbol , resp .Owner )
558562 assert .Equal (t , "title=test" , resp .BatchQuery )
559563 assert .True (t , resp .Active )
560564 assert .NotNil (t , resp .UpdatedAt )
@@ -614,6 +618,7 @@ func TestPutBatchActionsId_OK_RecomputesRunAtAndPersistsActionData(t *testing.T)
614618 assert .Equal (t , http .StatusOK , rr .Code )
615619 var resp schedoapi.BatchAction
616620 assert .NoError (t , json .Unmarshal (rr .Body .Bytes (), & resp ))
621+ assert .Equal (t , testSymbol , resp .Owner )
617622 assert .Equal (t , newSchedule , resp .Schedule )
618623 assert .Equal (t , "author=doe" , resp .BatchQuery )
619624 assert .NotNil (t , resp .NextRun )
0 commit comments