CDCgov / prime-reportstream

ReportStream is a public intermediary tool for delivery of data between different parts of the healthcare ecosystem.
https://reportstream.cdc.gov
Creative Commons Zero v1.0 Universal
72 stars 40 forks source link

Add mocking mechanism and mocked endpoints for production specs #8025

Open stephenkao opened 1 year ago

stephenkao commented 1 year ago

Problem statement

We can't rely on a mock Organization when running end-to-end tests against production. Consequently, we need to 1) create a mechanism to switch to mocked API endpoints on production and 2) create mocks for most API endpoints that would otherwise return real data.

What you need to know

Acceptance criteria

chris-kuryak commented 1 year ago

@penny-lischer To break out into individual tickets

stephenkao commented 1 year ago

Rough TODOs:

chris-kuryak commented 1 year ago

@penny-lischer @stephenkao Has this been successfully broken up? And do we need to keep this ticket, or should it be closed as it will be completed by doing the other tickets Penny created? Or does this need to become an epic?

cc: @Andrey-Glazkv

penny-lischer commented 1 year ago

@chris-kuryak I believe the tickets I wrote will suffice but will defer to @stephenkao for additional input.