Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use a temporary docker postgres container for postgres DB sync tests #1243

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

austinweisgrau
Copy link
Collaborator

@austinweisgrau austinweisgrau commented Jan 19, 2025

Should follow #1242

Uses the testcontainers package to easily generate and use a temporary postgres docker container for tests. Allows for running tests on postgres without running a persistent server separately, which should enable us to run tests on postgres in the CICD environment.

Previously, the env var PGPORT would be overridden by the default
value 5432. This still works as long as PGPORT isn't set.
prior implementation would not work if a postgres table was defined
with a schema, as the quoting of `"schema.table"` is not valid and it
needs to be `schema."table"`
this runs the test in a throwaway postgres docker container rather
than needing to run the tests on an actual persistent postgres server
expects an integer, but in this case it's actually gonna be a string,
and that's OK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant