Skip to content
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

fix(deps): update dependency org.testcontainers:testcontainers-bom to v1.19.8 #368

Merged
merged 3 commits into from
Jun 23, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Apr 5, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
org.testcontainers:testcontainers-bom (source) 1.17.6 -> 1.19.8 age adoption passing confidence

Release Notes

testcontainers/testcontainers-java (org.testcontainers:testcontainers-bom)

v1.19.8

Compare Source

Testcontainers for Java 1.19.8

🚀 Features & Enhancements

🐛 Bug Fixes

📖 Documentation

🧹 Housekeeping

📦 Dependency updates

v1.19.7

Compare Source

Testcontainers for Java 1.19.7

Modules

Elasticserach

HiveMQ
MongoDB
PostgreSQL

📖 Documentation

📦 Dependency updates

v1.19.6

Compare Source

Testcontainers for Java 1.19.6
Modules
New modules
📖 Documentation
🧹 Housekeeping
📦 Dependency updates

v1.19.5

Compare Source

Testcontainers for Java 1.19.5

[!IMPORTANT]
This version has downgraded the commons-compress version to 1.24.0 in order to avoid classpath conflicts due to a recent change in commons-compress 1.25.0. See https://github.com/testcontainers/testcontainers-java/issues/8169 for more details.

v1.19.4

Compare Source

What's Changed

🚀 Features & Enhancements

☠️ Deprecations

🐛 Bug Fixes

📖 Documentation

🧹 Housekeeping

📦 Dependency updates

7 changes

v1.19.3

Compare Source

What's Changed
🐛 Bug Fixes
🧹 Housekeeping

v1.19.2

Compare Source

Testcontainers for Java 1.19.2
Core
Modules
Elasticserach
JDBC
K3S
Kafka
LocalStack
YugabyteDB
What's Changed
📖 Documentation
📦 Dependency updates
12 changes

v1.19.1

Compare Source

Testcontainers for Java 1.19.1
Core
Modules
Redpanda
What's Changed
☠️ Deprecations
📖 Documentation
📦 Dependency updates
7 changes

v1.19.0

Compare Source

Testcontainers for Java 1.19.0
Core
Modules
ClickHouse
Elasticsearch
DB2
GCloud
JUnit Jupiter
Kafka

See https://java.testcontainers.org/modules/kafka/

MS SQL Server
QuestDB
Redpanda
  • Add Redpanda improvements (#​7320) @​eddumelendez
    • Allow to enable authorization and authentication methods
    • Allow to add additional listeners. E.g. using it with toxiproxy or redpanda console
    • Enable rest proxy
    • Configure rpk

See https://java.testcontainers.org/modules/redpanda/

Solace
Spock
What's Changed
☠️ Deprecations
📖 Documentation
🧹 Housekeeping
📦 Dependency updates
14 changes

v1.18.3

Compare Source

Testcontainers for Java 1.18.2 introduced new strategies to detect the docker.sock. There was an issue reported, see #​7082. It's is highly recommended to use version 1.18.3.

What's Changed
🧹 Housekeeping
  • Demote "testcontainers.properties not found" message to debug log level (#​7035) @​perlun

v1.18.2

Compare Source

Highlights ✨
🐛 Bug Fixes
🚀 Features & Enhancements
📖 Documentation
🧹 Housekeeping

v1.18.1

Compare Source

What's Changed

🚀 Features & Enhancements

🐛 Bug Fixes

📖 Documentation

🧹 Housekeeping

📦 Dependency updates

v1.18.0

Compare Source

Core module

  • Modules images such as MySQLContainer are now automatically compatible with their corresponding images with the library prefix
MySQLContainer<?> mysql = new MySQLContainer<>("library/mysql");
  • testcontainers/vnc has been bumped to version 1.3.0, which brings ARM support.
  • Goodbye to the whale in the logs. In order to provide an easy way to filter container logs the tc prefix has been added to display all container logs or tc.<image-name:tag> for a specific one. Check the logging docs.
  • There is a new WaitStrategy, ShellStrategy. It can also be used by calling Wait.forSuccessfulCommand(<command>)

New integration

Jib has been integrated to Testcontainers in order to take advantage of the nice API it provides to create containers

GenericContainer<?> busybox = new GenericContainer<>(
                new JibImage(
                    "busybox:1.35",
                    jibContainerBuilder -> {
                        return jibContainerBuilder.setEntrypoint("echo", "Hello World");
                    }
                )
            )
                .withStartupCheckStrategy(new OneShotStartupCheckStrategy().withTimeout(Duration.ofSeconds(3)))

New modules 🆕

CrateDB module

In order to use CrateDBContainer , declare the dependency in your pom.xml/build.gradle

<dependency>
    <groupId>org.testcontainers</groupId>
    <artifactId>cratedb</artifactId>
    <version>1.18.0</version>
    <scope>test</scope>
</dependency>
testImplementation "org.testcontainers:cratedb:1.18.0"

Choose a crate image version and use it as declared below with your postgres driver

CrateDBContainer cratedb = new CrateDBContainer("crate:5.2.5");
Solace Module

In order to use SolaceContainer , declare the dependency in your pom.xml/build.gradle

<dependency>
    <groupId>org.testcontainers</groupId>
    <artifactId>solace</artifactId>
    <version>1.18.0</version>
    <scope>test</scope>
</dependency>
testImplementation "org.testcontainers:solace:1.18.0"

Now, you can use a Solace PubSub running in a container and connecting via AMQP by doing the following:

SolaceContainer solace = new SolaceContainer("solace/solace-pubsub-standard:10.2");
solace.start();
Session session = createSession(
                solaceContainer.getUsername(),
                solaceContainer.getPassword(),
                solaceContainer.getOrigin(Service.AMQP)
            );

More information about SolaceContainer can be found in the documentation.

Container modules

CockroachDB

Starting with cockroachdb/cockroach:22.1.0, there is support for setting the username, password and database name via environment variables. Now, the Testcontainers module provides convenient setters:

CockroachContainer cockroach = new CockroachContainer("cockroachdb/cockroach:22.1.0")
    .withUsername("test_user")
    .withPassword("test_password")
    .withDatabaseName("test_database");
GCloud module

Google has released a new image which supports ARM and therefore BigtableEmulatorContainer, DatastoreEmulatorContainer, FirestoreEmulatorContainer, PubSubEmulatorContainer now support it as well.

So, if previously you were doing something like

DockerImageName.parse("gcr.io/google.com/cloudsdktool/google-cloud-cli:380.0.0-emulators")
    .asCompatibleSubstituteFor("gcr.io/google.com/cloudsdktool/cloud-sdk");

Now, you can simply do

DockerImageName.parse("gcr.io/google.com/cloudsdktool/google-cloud-cli:380.0.0-emulators");
JUnit Jupiter Module

@Testcontainers offers a new attribute parallel, which start those containers classes annotated by @Container

@&#8203;Testcontainers(parallel = true)
class ParallelTest {

	@&#8203;Container
private static final PostgreSQLContainer<?> postgres = new PostgreSQLContainer<>("postgres:15-alpine")
    .withCopyFileToContainer(MountableFile.forClasspathResource("db.sql"), "/docker-entrypoint-initdb.d/")
    .withNetwork(network)
    .withNetworkAliases("postgres");

@&#8203;Container
private static final ToxiproxyContainer toxiproxy = new ToxiproxyContainer("ghcr.io/shopify/toxiproxy:2.5.0")
    .withNetwork(network);

}
Kafka Module

Self-managed or Kraft mode (a.k.a Zookeeperless) support has been added

KafkaContainer kafka = new KafkaContainer(DockerImageName.parse("confluentinc/cp-kafka:7.0.1")).withKraft()
LocalStack Module

SERVICES environment variable became optional in version 0.13.0 and instead LocalStack will initialize a service once the first request is served. So, nowadays LocalStackContainer can be used just like this:

LocalStackContainer localstack = new LocalStackContainer("localstack/localstack:2.0.0");

Also, LocalStack module supports version 2.0. It is highly recommended to use the latest version of LocalStack images.
Last but not least, dependency on AWS SDK V1 was dropped. So, that means by upgrading to version 1.18.0, the dependency can be removed if not used directly.

MongoDB Module

MongoDBContainer by default has been enabling ReplicaSet mode. Starting in this version, sharding has been added.

MongoDBContainer mongodb = new MongoDBContainer("mongo:6")
    .withSharding();
Selenium Module

Selenium 4 has built-in support for Microsoft Edge (which is based on Chromium) and now it is supported by BrowserWebDriverContainer as well:

BrowserWebDriverContainer<?> edge = new BrowserWebDriverContainer<>("selenium/standalone-edge:4.8.0")
    .withCapabilities(new EdgeOptions());

More

⚠️ Breaking API changes

  • Removed deprecated methods and undeclared transitive dependency to AWS SDK v1 (#​5827) @​AB-xdev
  • Move junit-jupiter-api's dependency configuration to implementation (#​5985) @​edysli

🚀 Features & Enhancements

☠️ Deprecations

🐛 Bug Fixes

  • Short-circuit CompletableFuture returned by Startables#deepStart on exception (#​5930) @​pivovarit
  • fix: Don't return JSON auth config for partial registry name match (#​6323) @​kiview
  • Fix allowInsecure() on HttpWaitStrategy for non-localhost Docker daemon (#​6314) @​kiview

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot changed the title fix(deps): update dependency org.testcontainers:testcontainers-bom to v1.18.0 fix(deps): update dependency org.testcontainers:testcontainers-bom to v1.18.0 - autoclosed Apr 19, 2023
@renovate renovate bot closed this Apr 19, 2023
@renovate renovate bot deleted the renovate/testcontainers-java-monorepo branch April 19, 2023 23:56
@renovate renovate bot changed the title fix(deps): update dependency org.testcontainers:testcontainers-bom to v1.18.0 - autoclosed fix(deps): update dependency org.testcontainers:testcontainers-bom to v1.18.0 Apr 20, 2023
@renovate renovate bot reopened this Apr 20, 2023
@renovate renovate bot restored the renovate/testcontainers-java-monorepo branch April 20, 2023 05:04
@renovate renovate bot changed the title fix(deps): update dependency org.testcontainers:testcontainers-bom to v1.18.0 fix(deps): update dependency org.testcontainers:testcontainers-bom to v1.18.1 May 11, 2023
@renovate renovate bot force-pushed the renovate/testcontainers-java-monorepo branch from 364a797 to 4db2e22 Compare May 11, 2023 05:50
@renovate renovate bot changed the title fix(deps): update dependency org.testcontainers:testcontainers-bom to v1.18.1 fix(deps): update dependency org.testcontainers:testcontainers-bom to v1.18.2 May 30, 2023
@renovate renovate bot changed the title fix(deps): update dependency org.testcontainers:testcontainers-bom to v1.18.2 fix(deps): update dependency org.testcontainers:testcontainers-bom to v1.18.3 Jun 1, 2023
@renovate renovate bot force-pushed the renovate/testcontainers-java-monorepo branch from a9455b4 to d11a474 Compare June 1, 2023 17:40
@renovate renovate bot changed the title fix(deps): update dependency org.testcontainers:testcontainers-bom to v1.18.3 fix(deps): update dependency org.testcontainers:testcontainers-bom to v1.19.0 Aug 21, 2023
@renovate renovate bot force-pushed the renovate/testcontainers-java-monorepo branch from d11a474 to 57c37b4 Compare August 21, 2023 23:29
@renovate renovate bot changed the title fix(deps): update dependency org.testcontainers:testcontainers-bom to v1.19.0 fix(deps): update dependency org.testcontainers:testcontainers-bom to v1.19.1 Oct 2, 2023
@renovate renovate bot force-pushed the renovate/testcontainers-java-monorepo branch from 57c37b4 to 6d0ad38 Compare October 2, 2023 19:46
@renovate renovate bot changed the title fix(deps): update dependency org.testcontainers:testcontainers-bom to v1.19.1 fix(deps): update dependency org.testcontainers:testcontainers-bom to v1.19.2 Nov 15, 2023
@renovate renovate bot force-pushed the renovate/testcontainers-java-monorepo branch from 6d0ad38 to 86d7f79 Compare November 15, 2023 04:16
@renovate renovate bot changed the title fix(deps): update dependency org.testcontainers:testcontainers-bom to v1.19.2 fix(deps): update dependency org.testcontainers:testcontainers-bom to v1.19.3 Nov 21, 2023
@renovate renovate bot force-pushed the renovate/testcontainers-java-monorepo branch from 86d7f79 to 95e3357 Compare November 21, 2023 18:32
@renovate renovate bot force-pushed the renovate/testcontainers-java-monorepo branch from 95e3357 to 74617ad Compare January 25, 2024 18:11
@renovate renovate bot changed the title fix(deps): update dependency org.testcontainers:testcontainers-bom to v1.19.3 fix(deps): update dependency org.testcontainers:testcontainers-bom to v1.19.4 Jan 25, 2024
@renovate renovate bot force-pushed the renovate/testcontainers-java-monorepo branch from 74617ad to d48fca5 Compare February 8, 2024 19:42
@renovate renovate bot changed the title fix(deps): update dependency org.testcontainers:testcontainers-bom to v1.19.4 fix(deps): update dependency org.testcontainers:testcontainers-bom to v1.19.5 Feb 8, 2024
@renovate renovate bot force-pushed the renovate/testcontainers-java-monorepo branch from d48fca5 to 949971d Compare February 22, 2024 00:27
@renovate renovate bot changed the title fix(deps): update dependency org.testcontainers:testcontainers-bom to v1.19.5 fix(deps): update dependency org.testcontainers:testcontainers-bom to v1.19.6 Feb 22, 2024
@renovate renovate bot force-pushed the renovate/testcontainers-java-monorepo branch from 949971d to ba01990 Compare March 5, 2024 22:36
@renovate renovate bot changed the title fix(deps): update dependency org.testcontainers:testcontainers-bom to v1.19.6 fix(deps): update dependency org.testcontainers:testcontainers-bom to v1.19.7 Mar 5, 2024
@renovate renovate bot force-pushed the renovate/testcontainers-java-monorepo branch from ba01990 to 46200d7 Compare May 9, 2024 01:19
@renovate renovate bot changed the title fix(deps): update dependency org.testcontainers:testcontainers-bom to v1.19.7 fix(deps): update dependency org.testcontainers:testcontainers-bom to v1.19.8 May 9, 2024
@renovate renovate bot force-pushed the renovate/testcontainers-java-monorepo branch from 13fe77b to d52e9d3 Compare June 23, 2024 21:47
@renovate renovate bot force-pushed the renovate/testcontainers-java-monorepo branch from d52e9d3 to b6a6e6c Compare June 23, 2024 21:50
Copy link
Contributor Author

renovate bot commented Jun 23, 2024

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

@ikovalyov ikovalyov merged commit 9d6cbaf into main Jun 23, 2024
2 checks passed
@ikovalyov ikovalyov deleted the renovate/testcontainers-java-monorepo branch June 23, 2024 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant