Skip to content

Commit

Permalink
Align test container images with Camel & Quarkus
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesnetherton committed Sep 17, 2024
1 parent 56e1b82 commit 9be7195
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ public Map<String, String> start() {
.withServices(services);
localstack.withEnv("LS_LOG", localstackLogLevel);
localstack.withEnv("LAMBDA_EXECUTOR", "local");
localstack.withEnv("PROVIDER_OVERRIDE_CLOUDWATCH", "v1");
localstack.withLogConsumer(new Slf4jLogConsumer(LOG));
localstack.start();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ private void execScriptInContainer(String script) throws Exception {
String[] cmds = cmd.split("\\n\\n");

for (int i = 0; i < cmds.length; i++) {
Container.ExecResult er = container.execInContainer(new String[] { "mongo", "--eval", cmds[i] });
Container.ExecResult er = container.execInContainer(new String[] { "mongosh", "--eval", cmds[i] });
if (er.getExitCode() != 0) {
throw new IllegalStateException("Exec exit code " + er.getExitCode() + ". " + er.getStderr());
}
Expand Down
6 changes: 3 additions & 3 deletions integration-tests/debezium/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ consent with its EULA by placing a specific file on a specific location. The Apa
prevents us of doing it unconditionally for anybody who clones this repository.

Therefore, to execute the MS SQL Server integration tests you need to accept the
https://go.microsoft.com/fwlink/?linkid=857698[EULA] by creating file `integration-tests/debezium/src/test/resources/container-license-acceptance.txt` with content `mcr.microsoft.com/mssql/server:2017-CU12`
https://go.microsoft.com/fwlink/?linkid=857698[EULA] by creating file `integration-tests/debezium/src/test/resources/container-license-acceptance.txt` with content `mcr.microsoft.com/mssql/server:2022-latest`
in the current Maven module.

On a Unix-like system, you can run.

[source,shell]
----
echo "mcr.microsoft.com/mssql/server:2017-CU12" > integration-tests/debezium/src/test/resources/container-license-acceptance.txt
echo "mcr.microsoft.com/mssql/server:2022-latest" > integration-tests/debezium/src/test/resources/container-license-acceptance.txt
----

For more details see https://www.testcontainers.org/modules/databases/mssqlserver/
For more details see https://www.testcontainers.org/modules/databases/mssqlserver/
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ private void execScriptInContainer() throws Exception {
String script = IOUtils.toString(resource, StandardCharsets.UTF_8);
script = script.replace("%container-host%", getHostPort());
for (String cmd : script.split("\\n\\n")) {
Container.ExecResult er = container.execInContainer("mongo", "--port", String.valueOf(DB_PORT), "--eval", cmd);
Container.ExecResult er = container.execInContainer("mongosh", "--port", String.valueOf(DB_PORT), "--eval", cmd);
if (er.getExitCode() != 0) {
LOG.errorf("Error executing MongoDB command: %s", cmd);
LOG.error(er.getStdout());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class InfluxdbTest {
@Test
@Order(1)
public void pingTest() {
RestAssured.given().get("/influxdb/ping").then().body(is(InfluxdbTestResource.INFLUXDB_VERSION));
RestAssured.given().get("/influxdb/ping").then().body(is(InfluxdbTestResource.INFLUXDB_VERSION.replace("-alpine", "")));
}

@Test
Expand Down
38 changes: 19 additions & 19 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -223,40 +223,40 @@
<azurite.container.image>mcr.microsoft.com/azure-storage/azurite:3.31.0</azurite.container.image>
<calculator-ws.container.image>quay.io/l2x6/calculator-ws:1.2</calculator-ws.container.image>
<cassandra.container.image>docker.io/cassandra:4.1.3</cassandra.container.image>
<consul.container.image>docker.io/hashicorp/consul:1.16</consul.container.image>
<couchbase.container.image>docker.io/couchbase/server:7.2.0</couchbase.container.image>
<consul.container.image>docker.io/hashicorp/consul:1.19</consul.container.image>
<couchbase.container.image>docker.io/couchbase/server:7.2.5</couchbase.container.image>
<couchdb.container.image>docker.io/couchdb:2.3.1</couchdb.container.image>
<eclipse-mosquitto.container.image>docker.io/eclipse-mosquitto:2.0.18</eclipse-mosquitto.container.image>
<elasticsearch.container.image>docker.io/elastic/elasticsearch:8.13.2</elasticsearch.container.image>
<elasticsearch.container.image>docker.io/elastic/elasticsearch:8.15.1</elasticsearch.container.image>
<eventhubs-emulator.container.image>mcr.microsoft.com/azure-messaging/eventhubs-emulator:latest</eventhubs-emulator.container.image>
<fhir.container.image.base>docker.io/hapiproject/hapi</fhir.container.image.base>
<fhir.container.image>${fhir.container.image.base}:v6.8.3</fhir.container.image>
<fhir.container.image>${fhir.container.image.base}:v7.2.0</fhir.container.image>
<fhir-dstu.container.image>${fhir.container.image.base}:v4.2.0</fhir-dstu.container.image>
<google-cloud-sdk.container.image>gcr.io/google.com/cloudsdktool/cloud-sdk:441.0.0-emulators</google-cloud-sdk.container.image>
<google-storage.container.image>docker.io/fsouza/fake-gcs-server:1.47.3</google-storage.container.image>
<google-cloud-sdk.container.image>gcr.io/google.com/cloudsdktool/cloud-sdk:492.0.0-emulators</google-cloud-sdk.container.image>
<google-storage.container.image>docker.io/fsouza/fake-gcs-server:1.49.3</google-storage.container.image>
<greenmail.container.image>docker.io/greenmail/standalone:2.0.0</greenmail.container.image>
<hashicorp-vault.container.image>docker.io/hashicorp/vault:1.17</hashicorp-vault.container.image>
<ibm-mq.container.image>icr.io/ibm-messaging/mq:9.4.0.5-r1</ibm-mq.container.image>
<influxdb.container.image>docker.io/influxdb:1.8.10</influxdb.container.image>
<influxdb.container.image>docker.io/influxdb:1.8.10-alpine</influxdb.container.image>
<kafka.container.image>quay.io/strimzi-test-container/test-container:latest-kafka-3.8.0</kafka.container.image>
<kafka-oauth.container.image>quay.io/strimzi/kafka:latest-kafka-3.7.0</kafka-oauth.container.image>
<keycloak.container.image>quay.io/keycloak/keycloak:23.0.7</keycloak.container.image>
<keycloak.container.image>quay.io/keycloak/keycloak:25.0.4</keycloak.container.image>
<kudu.container.image>docker.io/apache/kudu:1.17.0</kudu.container.image>
<localstack.container.image>docker.io/localstack/localstack:3.3.0</localstack.container.image>
<localstack.container.image>docker.io/localstack/localstack:3.7.2</localstack.container.image>
<lra-coordinator.container.image>quay.io/jbosstm/lra-coordinator:7.0.1.Final-3.8.3</lra-coordinator.container.image>
<minio.container.image>docker.io/minio/minio:RELEASE.2023-07-21T21-12-44Z</minio.container.image>
<mysql.container.image>docker.io/mysql:5.7</mysql.container.image>
<mongodb.container.image>docker.io/mongo:4.4</mongodb.container.image>
<nats.container.image>docker.io/nats:2.10.14</nats.container.image>
<openssh-server.container.image>docker.io/linuxserver/openssh-server:version-9.3_p2-r0</openssh-server.container.image>
<minio.container.image>docker.io/minio/minio:RELEASE.2024-09-13T20-26-02Z</minio.container.image>
<mysql.container.image>docker.io/mysql:8.4</mysql.container.image>
<mongodb.container.image>docker.io/mongo:7.0</mongodb.container.image>
<nats.container.image>docker.io/nats:2.10.18</nats.container.image>
<openssh-server.container.image>docker.io/linuxserver/openssh-server:version-9.7_p1-r4</openssh-server.container.image>
<postgres.container.image>docker.io/postgres:15.0</postgres.container.image>
<postgres-debezium.container.image>docker.io/debezium/postgres:15-alpine</postgres-debezium.container.image>
<qdrant.container.image>docker.io/qdrant/qdrant:v1.8.4-unprivileged</qdrant.container.image>
<rabbitmq.container.image>docker.io/rabbitmq:3.9.29-management-alpine</rabbitmq.container.image>
<redis.container.image>docker.io/redis:7.0.12</redis.container.image>
<qdrant.container.image>docker.io/qdrant/qdrant:v1.9.7-unprivileged</qdrant.container.image>
<rabbitmq.container.image>docker.io/rabbitmq:3.13.7-management-alpine</rabbitmq.container.image>
<redis.container.image>docker.io/redis:6.2.14-alpine</redis.container.image>
<smb.container.image>quay.io/jamesnetherton/camel-smb-test-server:1.0.0</smb.container.image>
<splunk.container.image>docker.io/splunk/splunk:9.2.0</splunk.container.image>
<sql-server.container.image>mcr.microsoft.com/mssql/server:2017-CU12</sql-server.container.image>
<splunk.container.image>docker.io/splunk/splunk:9.3.1</splunk.container.image>
<sql-server.container.image>mcr.microsoft.com/mssql/server:2022-latest</sql-server.container.image>

<!-- Plugin configuration through properties -->

Expand Down

0 comments on commit 9be7195

Please sign in to comment.