mirror of
https://github.com/shankar0123/certctl.git
synced 2026-06-10 21:18:56 +00:00
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:
@@ -764,6 +764,14 @@ func (m *mockJobRepository) ListTimedOutAwaitingJobs(ctx context.Context, csrCut
|
|||||||
return jobs, nil
|
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 {
|
type mockAuditRepository struct {
|
||||||
events []*domain.AuditEvent
|
events []*domain.AuditEvent
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user