add multi initScripts for JDBC containers#1997
add multi initScripts for JDBC containers#1997png-tech wants to merge 1 commit intotestcontainers:masterfrom
Conversation
00eafe1 to
1798cb2
Compare
rnorth
left a comment
There was a problem hiding this comment.
Sorry this has been stuck for so long. As you can see we're rather swamped 😔
I think that to be as similar to other APIs as possible, the method ought to be of the form:
public SELF withInitScript(String... initScriptPath) {
and possibly also:
public SELF withInitScript(Iterable<String> initScriptPath) {
We should also have a test to guard against future regressions.
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe this is a mistake, please reply to this comment to keep it open. If there isn't one already, a PR to fix or at least reproduce the problem in a test case will always help us get back on track to tackle this. |
1798cb2 to
446f3c7
Compare
ok |
446f3c7 to
553e5c8
Compare
|
Sorry, we also have #2578 - can we just converge on that PR? I don't think it's perfect but it's most of the way towards solving binary compatibility and has the advantage of having a test. (FWIW re binary compatibility the problem is that changing the parameter of a method from |
Inspired by PRs: testcontainers#2578 and testcontainers#1997 Closes testcontainers#2232
Inspired by PRs: testcontainers#2578 and testcontainers#1997 Closes testcontainers#2232
Inspired by PRs: testcontainers#2578 and testcontainers#1997 Closes testcontainers#2232
I need to use many initScripts for JDBC containers.
first script - sql structure
second script - test-data
usage example: