Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Jan 29, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
com.fasterxml.jackson.core:jackson-databind (source) 2.14.1 -> 2.15.2 age adoption passing confidence
org.junit.vintage:junit-vintage-engine (source) 5.9.2 -> 5.10.0 age adoption passing confidence
org.testcontainers:junit-jupiter (source) 1.17.6 -> 1.19.1 age adoption passing confidence
org.testcontainers:clickhouse (source) 1.17.6 -> 1.19.1 age adoption passing confidence
org.testcontainers:kafka (source) 1.17.6 -> 1.19.1 age adoption passing confidence
org.testcontainers:postgresql (source) 1.17.6 -> 1.19.1 age adoption passing confidence
org.testcontainers:testcontainers (source) 1.17.6 -> 1.19.1 age adoption passing confidence
org.projectlombok:lombok (source) 1.18.24 -> 1.18.30 age adoption passing confidence
org.springframework.boot:spring-boot-starter-test (source) 3.0.2 -> 3.1.4 age adoption passing confidence

Release Notes

testcontainers/testcontainers-java (org.testcontainers:junit-jupiter)

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
projectlombok/lombok (org.projectlombok:lombok)

v1.18.30

v1.18.28

v1.18.26

Compare Source

spring-projects/spring-boot (org.springframework.boot:spring-boot-starter-test)

v3.1.4

Compare Source

⭐ New Features
  • Add TWENTY_ONE to JavaVersion enum #​37364
🐞 Bug Fixes
  • When SLF4J and Logback are initialized on multiple threads in parallel, startup may fail due to SubstituteLoggerFactory being considered to be a competing LoggerFactory implementation #​37484
  • Saml2RelyingPartyAutoConfiguration ignores sign-request when metadata-url is used #​37482
  • Leaking file descriptor / socket within DomainSocket tooling #​37460
  • Invalid Accept header produces HTTP 500 in WelcomePageHandlerMapping #​37457
  • PrivateKeyParser doesn't support ed448, XDH and RSA-PSS keys #​37422
  • "languageVersion is final and cannot be changed" when using Gradle 8.3 and configuring the Java toolchain's language version #​37380
  • AOT processing fails when a @ConfigurationProperties-annotated record has multiple constructors #​37336
  • Spring Boot dependency management not working for ehcache when using Gradle and the dependency management plugin #​37270
  • SslStoreBundle implementations aren't immutable #​37222
  • Parsing OCI image names that are invalid due to the use of upper case letters is very slow #​37183
  • Producing and consuming different tracing propagation formats doesn't work #​37178
  • Using https with elliptic curves other than secp384r1 fails #​37169
  • In 3.0.x and later, Spring Security cannot be used to secure a WebSocket upgrade request when using Jetty #​37158
  • Local baggage is propagated when using Brave and W3C #​37156
  • ServiceConnectionContextCustomizer can trigger docker usage during AOT processing #​37097
  • java.lang.OutOfMemoryError: Metaspace when repeatedly deploying and undeploying a Spring Boot web application multiple times in Tomcat #​37096
  • Property 'logging.threshold.console' not working #​36741
📔 Documentation
  • Document that PKCS8 PEM files should be used whenever possible #​37443
  • Add reference to Oracle Spring Boot Starters #​37411
  • Correct the description of spring.artemis.broker-url #​37309
  • Add default value metadata for management.metrics.export.signalfx.published-histogram-type #​37253
  • Polish javadoc #​37143
🔨 Dependency Upgrades
❤️ Contributors

Thank you to all the contributors who worked on this release:

@​Eng-Fouad, @​dependabot[bot], @​izeye, @​markxnelson, @​mdeinum, and @​quaff

v3.1.3

Compare Source

🐞 Bug Fixes
  • Logging config URLs with query parameters are not detected as XML #​37062
  • Changed environment variable name APP_PASSWORD to APP_USER_PASSWORD i? #​37044
  • BindableRuntimeHintsRegistrar does not generate hints for all nested types of a ConfigurationProperties type #​37022
  • server.max-http-request-header-size doesn't affect Netty server with http2 enabled #​37015
  • AbstractAotMojo should not add source or target if they are null #​36972
  • Exception message in ProcessTestAotMojo has a typo #​36966
  • Docker Compose start fails with "unknown flag: --no-color" #​36908
  • Script-based database initialization fails with an unhelpful error message when configured with a resource that points to a directory #​36786
  • Artemis ConnectionFactory is not configured when CachingConnectionFactory is missing and enabled properties are false #​36772
  • DatabaseDriver swallows real exception #​36759
  • Defining a custom ElasticsearchTransport causes the auto-configured JsonpMapper to back off #​36700
  • Auto-configuration's session repository customization may override that of SessionRepositoryCustomizer beans #​36696
  • RabbitMQ smoke test is missing a test #​36612
  • Tomcat warns about a missing +/- prefix when enabling multiple protocols through server.ssl.enabled-protocols #​36584
  • management.metrics.export.stackdriver properties are incomplete #​36559
  • management.wavefront.metrics.export properties are incomplete #​36556
  • management.metrics.export.signalfx properties are incomplete #​36553
  • JobLauncherApplicationRunner returns a success exit code even when no jobs have been run #​36532
  • Remove use of jakarta.annotation.PostConstruct #​36529
  • management.metrics.export.atlas properties are incomplete #​36526
  • Descriptions of started and ready time metrics contain time units but the unit may change when the metrics are exported #​36516
  • Unlike other Spring Boot goals, process-aot and process-test-aot run on Maven reactor projects #​36494
  • @ServiceConnection on a @Bean method does not work in sliced tests #​36037
📔 Documentation
  • Fix broken links in the documentation #​37071
  • Maven plugin docs contain invalid parameter for image building #​37051
  • Align javadoc of AbstractFilterRegistrationBean#setDispatcherTypes #​36969
  • Improve documentation of spring.cache.type=none #​36962
  • Clarify that spring.security.filter properties only apply to servlet-based web apps #​36865
  • Improve documentation to describe how @EntityScan and @Enable?Repositories can be used to tune scanning #​36862
  • Describe quirks of JUL and Log4j2 in the javadoc of OutputCaptureExtension #​36859
  • LogbackLoggingSystem does not report suppressed exception details #​36856
  • Clarify table that shows how logging properties are transferred to system properties #​36853
  • Review Google AppEngine documentation #​36850
  • Rework Working with NoSQL Technologies to clarify which stores are supported by Spring Data #​36813
  • Clarify how nested directories are treated for configtree with wildcards #​36810
  • Clarify the effect of using @EnableWebMvc #​36797
  • Document defaults for spring.mvc.format.* and spring.webflux.format.* properties #​36793
  • Documentation describes how to opt in to using the path pattern parser but it's now the default #​36789
  • Document that scripts for database initialization are optional by default and how they can be made mandatory #​36783
  • Document @DataR2dbcTest support #​36756
  • @since is missing from javadoc of values added to JavaVersion since its introduction #​36735
  • Update Paketo builder references in documentation #​36690
  • Document how to use Docker Compose integration when running tests #​36636
  • Update RestTemplateBuilder#defaultHeader javadoc to reference correct client-side HTTP request class #​36630
  • Document that server.forward-headers-strategy property defaults to native when running on Kubernetes #​36581
  • Documentation of spring.data.redis.url incorrectly states that it does not override spring.data.redis.user #​36492
🔨 Dependency Upgrades

Configuration

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

🚦 Automerge: Enabled.

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

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • 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 requested a review from a team as a code owner January 29, 2023 04:05
@codecov
Copy link

codecov bot commented Jan 29, 2023

Codecov Report

Merging #21 (ed7a1c1) into master (8ff2f71) will not change coverage.
The diff coverage is n/a.

❗ Current head ed7a1c1 differs from pull request most recent head ee748a2. Consider uploading reports for the commit ee748a2 to get more accurate results

@@          Coverage Diff           @@
##           master     #21   +/-   ##
======================================
  Coverage    0.00%   0.00%           
======================================
  Files          22      22           
  Lines         540     540           
  Branches       38      38           
======================================
  Misses        540     540           

@renovate renovate bot force-pushed the renovate/all-minor-patch branch from acdcc85 to f73df98 Compare February 3, 2023 03:34
@renovate renovate bot changed the title Update dependency com.fasterxml.jackson.core:jackson-databind to v2.14.2 Update all non-major dependencies Feb 3, 2023
@renovate renovate bot force-pushed the renovate/all-minor-patch branch from f73df98 to a522fde Compare February 21, 2023 19:28
@renovate renovate bot force-pushed the renovate/all-minor-patch branch 2 times, most recently from a18e755 to 791f248 Compare March 7, 2023 17:20
@renovate renovate bot force-pushed the renovate/all-minor-patch branch 4 times, most recently from e6dbddf to 03e38fa Compare March 24, 2023 00:00
@renovate renovate bot force-pushed the renovate/all-minor-patch branch from 03e38fa to ed7a1c1 Compare April 4, 2023 20:34
@renovate renovate bot force-pushed the renovate/all-minor-patch branch 4 times, most recently from 958c214 to 35af20f Compare May 31, 2023 23:35
@renovate renovate bot force-pushed the renovate/all-minor-patch branch from 35af20f to 55eee2e Compare June 22, 2023 15:42
@renovate renovate bot force-pushed the renovate/all-minor-patch branch 2 times, most recently from d8163a4 to 1689e3d Compare July 23, 2023 15:14
@renovate renovate bot force-pushed the renovate/all-minor-patch branch 2 times, most recently from 6cad509 to e94b851 Compare August 24, 2023 14:54
@renovate renovate bot force-pushed the renovate/all-minor-patch branch 2 times, most recently from 8ab897a to cae4f59 Compare September 14, 2023 22:12
@renovate renovate bot force-pushed the renovate/all-minor-patch branch 2 times, most recently from 2d379e4 to 1b96166 Compare September 21, 2023 13:16
@renovate renovate bot force-pushed the renovate/all-minor-patch branch from 1b96166 to ee748a2 Compare October 2, 2023 21:03
@renovate renovate bot changed the title Update all non-major dependencies Update all non-major dependencies - autoclosed Oct 11, 2023
@renovate renovate bot closed this Oct 11, 2023
@renovate renovate bot deleted the renovate/all-minor-patch branch October 11, 2023 13:55
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