## Phase 6: Testing and Integration **Parent:** #424 ### Tasks - [ ] Create - TraceSpan validation - to_storage() / from_storage() conversion - [ ] Create - All resource operations with mock storage - Batch insert error handling - Trace tree construction - [ ] Create - POST /traces (single and batch) - GET /traces (list, pagination) - GET /traces/<id> (detail) - GET /traces/search - Auth required (except /health) - Content negotiation (JSON vs plain text) - [ ] Create - GET /health returns 200 - No auth required - [ ] Create - Middleware captures request - Trace ID echoed in response - Authorization header stripped - Response body truncation - [ ] End-to-end test: request → middleware → API → DB retrieval → UI display ### Acceptance Criteria - [ ] All unit tests pass - [ ] All contract tests pass - [ ] Integration test proves full flow works - [ ] Test coverage > 80% for audit module - [ ] Manual UI testing checklist complete ### References - Campus testing conventions - Existing test patterns in
Phase 6: Testing and Integration
Parent: #424
Tasks
Acceptance Criteria
References