Skip to content

Commit

Permalink
Upgrade testcontainers to 1.19.0 (#3560)
Browse files Browse the repository at this point in the history
This allows integration tests to be run on Apple silicon. Ports need to be explicitly exposed now.
  • Loading branch information
shakuzen authored Aug 29, 2023
1 parent d0bdc80 commit 15d36ea
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
<assertj.version>3.18.1</assertj.version>
<awaitility.version>4.0.3</awaitility.version>
<hamcrest.version>1.3</hamcrest.version>
<testcontainers.version>1.15.1</testcontainers.version>
<testcontainers.version>1.19.0</testcontainers.version>
<okhttp.version>4.9.0</okhttp.version>
<okhttp5.version>5.0.0-alpha.11</okhttp5.version>
<kryo.version>5.0.3</kryo.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ static final class CassandraContainer extends GenericContainer<CassandraContaine
if ("true".equals(System.getProperty("docker.skip"))) {
throw new TestAbortedException("${docker.skip} == true");
}
addExposedPort(9042);
waitStrategy = Wait.forHealthcheck();
withLogConsumer(new Slf4jLogConsumer(LOGGER));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ static final class ElasticsearchContainer extends GenericContainer<Elasticsearch
if ("true".equals(System.getProperty("docker.skip"))) {
throw new TestAbortedException("${docker.skip} == true");
}
addExposedPort(9200);
waitStrategy = Wait.forHealthcheck();
withLogConsumer(new Slf4jLogConsumer(LOGGER));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ static final class MySQLContainer extends GenericContainer<MySQLContainer> {
if ("true".equals(System.getProperty("docker.skip"))) {
throw new TestAbortedException("${docker.skip} == true");
}
addExposedPort(3306);
waitStrategy = Wait.forHealthcheck();
withLogConsumer(new Slf4jLogConsumer(LOGGER));
}
Expand Down

0 comments on commit 15d36ea

Please sign in to comment.