-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Update test container version to 2.0.2 #138622
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
base: main
Are you sure you want to change the base?
Conversation
|
Pinging @elastic/es-delivery (Team:Delivery) |
| components.withModule("org.subethamail:subethasmtp", ExcludeAllTransitivesRule.class); | ||
|
|
||
| // Testcontainers dependencies | ||
| components.withModule("org.testcontainers:testcontainers", ExcludeAllTransitivesRule.class); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We lately have removed our requirement for no transitive dependencies. lets rely on transitives here for docker java etc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh wow, we did?
| testImplementation project(':test:framework') | ||
| api "junit:junit:${versions.junit}" | ||
| api project(':test:fixtures:testcontainer-utils') | ||
| api("org.testcontainers:testcontainers:${versions.testcontainer}") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some more dependency cleanup
| api("org.testcontainers:testcontainers:${versions.testcontainer}") { | ||
| transitive = false | ||
| } | ||
| implementation("commons-io:commons-io:2.15.1") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we rely on IOUtils which we previously used a shaded class shipped with testcontainer
| super(image); | ||
| } | ||
|
|
||
| @Override |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wrap this in a junit4 rule api
| import org.junit.runners.model.Statement; | ||
| import org.testcontainers.containers.Network; | ||
|
|
||
| public class Junit4NetworkRule implements TestRule { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Util class to keep support for Network as rule
|
Is anything needed for serverless? Or is this everything? |
3e7102c to
6f76ccc
Compare
f510430 to
d3506c4
Compare
Yes, we have a linked PR addressing these |
2fabf10 to
6f59bf2
Compare
Wrap for junit4 support
- fix startup - stop failing silently - handle jarhell in shadowed commons
should simplify debugging cleanup failures
- using in parallel - using with weired Locale settings
bc1cd2d to
97a9cd7
Compare
Update testcontainer library due to docker incompatibility