CDCgov / dibbs-query-connector

A FHIR client allowing public health agencies to query health care organizations directly or via a TEFCA QHIN
Creative Commons Zero v1.0 Universal
4 stars 0 forks source link

Make integration tests spin up postgres DB #96

Open fzhao99 opened 1 month ago

fzhao99 commented 1 month ago

Description:

This slack thread describes the state of the problem well: https://skylight-hq.slack.com/archives/C05BEG226RZ/p1726609799147699

The scope of this ticket is to spin up the postgres query database when running integration tests so that our API back end can successfully get value sets from it when executing queries.

Another consideration is to potentially reuse the DB container we're already using for the e2e's, as discussed here

Acceptance Criteria:

The integration tests should work.

GIVEN we run our integration tests locally or in CI

WHEN the tests spin up

THEN they should wait for a live connection to a database before starting.

linear[bot] commented 1 month ago

QUE-47 Make integration tests spin up postgres DB