test(edda-serve): add 21 endpoint tests for coverage gaps (GH-374)#386
test(edda-serve): add 21 endpoint tests for coverage gaps (GH-374)#386
Conversation
Add tests for previously untested endpoint groups: - Auth pairing: create, complete, list, revoke, revoke-all (8 tests) - Briefs: empty list, not-found, with task_intake seed (3 tests) - Village stats: happy path with seeded data, invalid ISO param (2 tests) - Approval check: inline bundle, nonexistent bundle 404 (2 tests) - Controls patches: empty list, invalid status 400 (2 tests) - Decisions: invalid after param returns 400 (1 test) - Log filters: filter by type, filter by keyword (2 tests) - Telemetry: source filter (1 test) Total: 112 -> 133 tests passing. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Code Review: PR #386 (Round 1)SummaryAdds 21 endpoint tests covering auth pairing, briefs, village stats, approval check, controls patches, decisions validation, log filters, and telemetry source filtering. Test isolation is solid (each test uses Key FindingsCritical Issues (P0)None. High Priority (P1)
Testing ReviewCoverage
Convention Compliance
Testing Verdict: Adequate CoverageVerdict: Changes RequestedFixing P1 issue (naming inconsistency) and will re-review. Round 1 of automated review-fix loop |
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Code Review: PR #386 (Round 2) — LGTM 🎉All P0 and P1 issues have been resolved. Summary21 endpoint tests added covering 8 endpoint groups: auth pairing (8 tests), briefs (3), village stats (2), approval check (2), controls patches (2), decisions validation (1), log filters (2), and telemetry source filtering (1). All tests use Fixed in round 1: STORE_LOCK guard variable naming aligned with project convention ( Verdict: LGTM ✅No critical or high-priority issues remaining. This PR is ready for merge. Completed after 2 round(s) of automated review-fix loop |
Summary
edda-serveafterparam returns 400 (1 test)Test plan
cargo test -p edda-serve— 133 passedcargo clippy -p edda-serve --all-targets— zero warningscargo fmt -p edda-serve -- --check— cleanCloses #374
🤖 Generated with Claude Code