ADR-0022: Provider Sandbox / Simulator
Статус
Accepted
Контекст
Game/payment provider integrations требуют тестирования duplicate callbacks, out-of-order events, invalid signatures, timeouts и rollback. Реальные providers неудобны и небезопасны для таких сценариев.
Решение
Создать Provider Sandbox / Simulator:
- local/staging only;
- тот же adapter contract или HTTP surface;
- scripted callbacks;
- replay/duplicate/out-of-order scenarios;
- Testcontainers integration.
Последствия
- Integration tests становятся воспроизводимыми.
- Callback idempotency проверяется до production.
- Ops может репетировать runbooks.
Ссылки
- Provider Sandbox / Simulator