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

easypg: replace testing/with-postgres-db.sh with a Go API #189

Merged
merged 2 commits into from
Dec 9, 2024

Conversation

majewsky
Copy link
Contributor

@majewsky majewsky commented Dec 9, 2024

The new test server is completely separate from the one managed by the script (it uses a different data directory and also a different port number), so it can be run in parallel with the old script until all usage has been ported over. Then we can remove the shell script from go-makefile-maker.

I have tested this by porting Castellum to this new version of the library. This can be inspected in sapcc/castellum@fda9392.

@coveralls
Copy link

coveralls commented Dec 9, 2024

Coverage Status

coverage: 32.65% (-1.4%) from 34.093%
when pulling 3c4df7c on easypg-better-test-mode
into 7b179e6 on master.

@majewsky majewsky force-pushed the easypg-better-test-mode branch from d13bb4b to dab5953 Compare December 9, 2024 14:29
I want to be able to carry these independently because tests want to use
a different logic for obtaining a database URL while still using the
same Configuration as the productive code otherwise.
This replaces the shell script `./testing/with-postgres-db.sh`.
The new test server is completely separate from the one managed by the
script (it uses a different data directory and also a different port
number), so it can be run in parallel with the old script until all
usage has been ported over. Then we can remove the shell script from
go-makefile-maker.
@majewsky majewsky force-pushed the easypg-better-test-mode branch from dab5953 to 3c4df7c Compare December 9, 2024 14:39
@majewsky majewsky merged commit 5ef5db2 into master Dec 9, 2024
6 checks passed
@majewsky majewsky deleted the easypg-better-test-mode branch December 9, 2024 14:56
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.

3 participants