Skip to content

[TESTING] Add missing test coverage: DatabaseManager, API routes, Sentinel ingest, RAG pipeline #153

Description

@TFT444

Objective

Close the four test coverage gaps from the audit so critical code paths are validated in CI.

Findings addressed

  • CI-001 GAP: DatabaseManager has zero unit tests
  • CI-002 GAP: Five API route files have zero tests, score, compliance, drift, resources, prioritization
  • CI-003 GAP: sentinel/ingest.py HMAC signing and field mappings untested
  • CI-004 GAP: Full RAG pipeline untested, ai/embed.py, ai/retriever.py, ai/loader.py

Acceptance criteria

  • DatabaseManager has unit tests
  • All five API route files have tests
  • Sentinel HMAC signing and field mappings tested
  • RAG pipeline has tests using the existing mock patterns
  • CI passes, base branch dev

Category

CI and Testing

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestpriority: mediumShould be fixed soon but not blocking

Type

Fields

No fields configured for Task.

Projects

Status
📋 Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions