-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
JdbcDatabaseContainer doesn't have lazy image constructor #543
Comments
What is the use-case that requires this type of construction?? |
I want to be able to access the instance method getJdbcDriverInstance() before the images has been pulled. I have written a junit wrapper library and the assumeDriver function is too slow. Since I use custom JDBC containers that requires proprietary drivers they might not be available and I want that to be checked before pulling the image. Library exists more or less to add assumptions. With the lazy loading I can skip the image pull if the driver is missing by skipping the test before it actually pulls/starts the container. |
wow, I think the correct question is "why |
Precisely that, to fail fast. If a test class declares multiple This was an old decision though - happy to revisit in light of how people want to use the tool nowadays, and whether this makes sense. |
So adding the suppressed constructor wouldn't be a problem. Other if possible solution would be to query repositories to see if image exists but to do pulling in start/tryStart. DockerClient has a search cmd. |
Hi
Is there a reason why JdbcDatabaseContainer doesn't have the super constructor with Future image)?
The text was updated successfully, but these errors were encountered: