Skip to main content

Expense Event Integration Testing Guide

Summary

Existing scripts provide Expense outbox, workflow-callback, notification-dispatch, Payroll projection, duplicate, stale-event, parity, and cutover evidence. No dedicated automated contract-test project or end-to-end production-broker test suite is confirmed.

Existing evidence

EvidenceConfirmed event coverageLimitation
Expense smokeApproval, rejection, and paid transitions create outbox recordsDoes not by itself prove downstream broker delivery
Expense workflow smoke modeWorkflow approval/rejection callbacks and duplicate callback suppressionLocal workflow exercise, not workflow-event consumption
Expense notification smoke modeReal Expense outbox contracts are passed through Notification resolution, delivery, and duplicate handlingUses a broker-free test-dispatch boundary
Payroll smokeExpense event subscription, projection updates, duplicate handling, stale handling, and calculation impactSynthetic publication rather than the Expense hosted relay
Expense parity automationIncludes outbox evidence in compatibility comparisonDoes not validate consumer delivery
Cutover runbookIncludes validation and rollback activities around Expense transitionDoes not establish an executed event replay or rollback rehearsal

Not implemented as confirmed automated evidence

  • Version-compatibility contract suite
  • Expense relay retry-ceiling or dead-letter test
  • Broker partition-ordering test
  • Expense inbound-consumer test
  • Cross-service replay test
  • Formal chaos or long-running delivery test

Use approved isolated environments and synthetic data when running existing scripts. This documentation task did not run services, connect to a broker or database, or execute integration scripts.

Requires confirmation

Test environment ownership, broker test strategy, contract fixtures, replay testing, failure-injection policy, and release-gate requirements require confirmation.

Source References

  • microservices/scripts/smoke-expense.ps1
  • microservices/scripts/smoke-payroll.ps1
  • microservices/scripts/compare-expense-parity.ps1
  • microservices/docs/expense-cutover-runbook.md

See Also

Keywords

  • Expense events
  • Integration Testing Guide
  • Integration contracts

Revision Information

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