Bundle C tail: integration mock stub for ListJobsWithOfflineAgents

CI on the bundle-C merge (run #24970879984) failed go vet because
internal/integration/lifecycle_test.go::mockJobRepository didn't
implement the new JobRepository.ListJobsWithOfflineAgents method
that Bundle C added.

The lifecycle integration test does not exercise the offline-agent
reaper path (the unit-level test in internal/service covers that),
so the integration-mock stub is a no-op returning (nil, nil) — same
shape as the existing M-7 / I-003 stubs in this file.

Verification:
  go vet ./internal/integration                              clean
  go test -count=1 -short ./internal/integration             green
This commit is contained in:
shankar0123
2026-04-27 00:27:33 +00:00
parent 1500137bf1
commit 46800f3365
+8
View File
@@ -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
}