Skip to content

Extract shared inbox transaction contract tests #253

Closed

Description

@thomhurst

Implement the provider-independent inbox acceptance cases from #42/#234 now, without waiting for MongoDB.Driver Native AOT support. Existing PostgreSQL/EF tests in tests/Relayer.Outbox.PostgreSql.Tests/InboxTests.cs already exercise the behavior, but cannot be inherited by another provider.

Scope and acceptance criteria:

  • Extract a shared inbox contract suite under tests/Shared, with a PostgreSQL/EF adapter against real PostgreSQL.
  • Cover atomic business/inbox/outbox commit before settlement, duplicate telemetry, identity scoped by consumer, concurrent commit and rollback, rollback on handler failure/cancellation/non-complete settlement, and redelivery after acknowledgement loss.
  • Keep deterministic provider-specific contention observation in the adapter; do not replace native transaction or conflict semantics.
  • Retain PostgreSQL-specific configuration, SQL failure and disposal tests in the existing suite.
  • Document how future providers reuse the inbox contracts. Run inherited cases and the remaining PostgreSQL inbox tests, plus the documentation build.

This is an independently mergeable sibling under #42. MongoDB native sessions, transaction conflict retries, disposal behavior and the MongoDB adapter remain #234, blocked by #233. No production API change or MongoDB support claim is included.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3area: outboxphase-3: breadth

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions