mirror of
https://github.com/shankar0123/certctl.git
synced 2026-06-07 15:21:35 +00:00
Merge fix/bundle-C-tail: integration mock stub for ListJobsWithOfflineAgents
This commit is contained in:
@@ -764,6 +764,14 @@ func (m *mockJobRepository) ListTimedOutAwaitingJobs(ctx context.Context, csrCut
|
||||
return jobs, nil
|
||||
}
|
||||
|
||||
// ListJobsWithOfflineAgents is the Bundle C / Audit M-016 integration-mock
|
||||
// stub. The lifecycle integration test does not exercise the offline-agent
|
||||
// reaper path; the unit-level test in internal/service covers it. Here we
|
||||
// just satisfy the JobRepository interface so the package compiles.
|
||||
func (m *mockJobRepository) ListJobsWithOfflineAgents(ctx context.Context, agentCutoff time.Time) ([]*domain.Job, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
type mockAuditRepository struct {
|
||||
events []*domain.AuditEvent
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user