Skip to main content

Expense Database Testing Guide

Summary

Existing evidence includes migration and snapshot artifacts, development-seed guards, Expense smoke automation, compatibility parity automation, backfill validation and audit components, and a cutover runbook. No dedicated Expense database integration-test project is confirmed.

Audience

Backend developers, database reviewers, QA, architects, DevOps, support, and implementation teams.

Confirmed persistence

EvidenceWhat is confirmedWhat it does not prove
Migration classes and model snapshotOrdered model evolution and the current expected EF modelSuccessful application in a production-like environment
Development seederDevelopment-only guard and an idempotent marker around representative aggregate pathsProduction migration or seed governance
Expense smoke scriptAutomated service smoke flow existsExhaustive database constraints, rollback, or concurrency behavior
Compatibility parity scriptAutomated comparison of compatibility and native behavior existsLong-running synchronization or every historical data shape
Backfill validator and audit componentsDry-run, resume, invariant, count, and validation evidence is produced by the transition toolingA completed production backfill
Cutover runbookGo/no-go, validation, cutover, and rollback activities are documented operationallyExecuted approval or successful rollback rehearsal

No source-backed evidence was found for dedicated automated coverage of receipt cascade, tenant-filter bypass, transaction rollback across all tracked objects, concurrency, retention, or archival. Those remain test gaps rather than implied tests. Any execution must use approved isolated data and environments; this documentation workflow does not connect to a database.

Requires confirmation

Production migration governance, retention, archival, masking, performance targets, concurrency roadmap, operational-store access, and rollback ownership remain unconfirmed unless narrowed above.

Source References

  • microservices/scripts/smoke-expense.ps1
  • microservices/scripts/compare-expense-parity.ps1
  • microservices/src/expense-service/Backfill/ExpenseBackfillValidator.cs
  • microservices/docs/expense-cutover-runbook.md

See Also

Keywords

  • Expense database
  • Database Testing Guide

Revision Information

  • Status: Draft
  • Last reviewed: 2026-07-16
  • Review cycle: Quarterly