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

Add container reset feature + postgres impl #699

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

orlangure
Copy link
Owner

This feature allows to reset containers to their initial state between tests, when reused.

As the first example, I implemented Reset function for postgres preset. It drops schemas and deletes users, and then calls the regular init function to restore the state requested by user options in the beginning. New postgres test suite demonstrates how the feature can be used.

This feature allows to reset containers to their initial state between
tests, when reused.

As the first example, I implemented Reset function for postgres preset.
It drops schemas and deletes users, and then calls the regular init
function to restore the state requested by user options in the
beginning. New postgres test suite demonstrates how the feature can be
used.
@orlangure orlangure self-assigned this Oct 21, 2022
@codecov-commenter
Copy link

codecov-commenter commented Oct 21, 2022

Codecov Report

Base: 85.80% // Head: 85.41% // Decreases project coverage by -0.38% ⚠️

Coverage data is based on head (4ab136b) compared to base (f6a5b27).
Patch coverage: 58.33% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #699      +/-   ##
==========================================
- Coverage   85.80%   85.41%   -0.39%     
==========================================
  Files          49       49              
  Lines        2310     2358      +48     
==========================================
+ Hits         1982     2014      +32     
- Misses        170      178       +8     
- Partials      158      166       +8     
Impacted Files Coverage Δ
preset/postgres/preset.go 74.35% <51.21%> (-9.86%) ⬇️
docker.go 90.51% <100.00%> (+1.04%) ⬆️
options.go 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@cgeers
Copy link

cgeers commented Jan 31, 2023

very useful. this looks great! 👍

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