Commit Graph

24392 Commits

Author SHA1 Message Date
Andy Wilkinson
de75283f36 Upgrade to Spring Session 3.2.3
Closes gh-40663
2024-05-22 09:57:24 +01:00
Andy Wilkinson
7a60bbbba4 Upgrade to Spring Pulsar 1.0.6
Closes gh-40662
2024-05-22 09:57:23 +01:00
Andy Wilkinson
814f01551d Upgrade to Spring Integration 6.2.5
Closes gh-40660
2024-05-22 09:57:21 +01:00
Andy Wilkinson
468e246dbb Make sure container's started before connection details use it
Prior to this commit, a Testcontainer that was managed as a bean
would not have been started in time if it was accessed before
the bean factory's configuration had been frozen. A common way
for this to occur is when using JPA. The entity manager factory
bean is LoadTimeWeaverAware which causes it to be created before
configuration is frozen. Creating this bean requires the DataSource
which in turn requires the JdbcConnectionDetails and its JDBC URL.
Getting the JDBC URL From the connection details requires the
container hosting the SQL database to have been started.

This commit updates ContainerConnectionDetails, the super-class for
all Testcontainer-based ConnectionDetails implementations, to publish
an event when the Container is retrieved from the details. When this
event is published, TestcontainersLifecycleBeanPostProcessor
initializes all containers that are defined as beans.

Closes gh-40585
2024-05-22 09:15:21 +01:00
Andy Wilkinson
486ceecc9a Use the bean factory to get the type produced by a factory bean
Previously, we only looked at the OBJECT_TYPE_ATTRIBUTE on the
factory bean's definition. This did not work for situations
where the information's provided by the definition's target type
rather than the attribute.

Rather than manually considering the target type in addition to
the existing consideration of the attribute, we now ask the bean
factory for the type that will be produced by the factory bean
instead. This should insulate us from any changes and
enhancements in Framework in the future.

Fixes gh-40234
2024-05-21 15:27:59 +01:00
Andy Wilkinson
a894879085 Use DefaultDbRefResolver whenever MongoDatabaseFactory is available
Fixes gh-39405
2024-05-21 10:29:39 +01:00
Andy Wilkinson
823cc90b46 Merge branch '3.1.x' into 3.2.x
Closes gh-40849
2024-05-21 10:28:59 +01:00
Andy Wilkinson
f692fb1471 Ensure that Hazelcast binds to localhost for client tests
Closes gh-40848
2024-05-21 10:28:49 +01:00
Phillip Webb
39ab959af8 Merge branch '3.1.x' into 3.2.x
Closes gh-40845
2024-05-20 21:06:59 -07:00
Phillip Webb
f743dc82fc Improve graceful shutdown documentation to remove ambiguity
Closes gh-40108
2024-05-20 21:06:22 -07:00
Phillip Webb
44619a9eef Merge branch '3.1.x' into 3.2.x
Closes gh-40843
2024-05-20 18:58:09 -07:00
Phillip Webb
f5f02d6df1 Document that a private constructor opts-out of constructor binding
Closes gh-34820
2024-05-20 18:56:46 -07:00
Andy Wilkinson
dda74cab94 Upgrade to Spring Kafka 3.1.5
Closes gh-40661
2024-05-20 20:33:14 +01:00
Andy Wilkinson
64ba92e29a Upgrade to Spring Kafka 3.0.17
Closes gh-40651
2024-05-20 20:31:25 +01:00
Andy Wilkinson
9d44468d44 Upgrade to Spring AMQP 3.1.5
Closes gh-40827
2024-05-20 18:00:50 +01:00
Andy Wilkinson
7c59dfb782 Upgrade to Spring AMQP 3.0.14
Closes gh-40824
2024-05-20 17:58:55 +01:00
Andy Wilkinson
b718e5806f Merge branch '3.1.x' into 3.2.x
Closes gh-40838
2024-05-20 15:55:00 +01:00
Andy Wilkinson
1d91757061 Document that HttpMessageConverters can be used for reordering/removal
Closes gh-40767
2024-05-20 15:54:12 +01:00
Andy Wilkinson
f440f2c3ac Merge branch '3.1.x' into 3.2.x
Closes gh-40834
2024-05-20 13:12:03 +01:00
Andy Wilkinson
f5262d89df Add missing Testcontainers service connection tests
Closes gh-35039
2024-05-20 13:02:24 +01:00
Andy Wilkinson
75976713fe Polish "Fix typo in CertificateMatchingTestSource class"
See gh-40822
2024-05-20 10:14:45 +01:00
Piyal Ahmed
092e921433 Fix typo in CertificateMatchingTestSource class
See gh-40822
2024-05-20 10:13:39 +01:00
Andy Wilkinson
5b892b163f Start building against Spring AMQP 3.1.5 snapshots
See gh-40827
2024-05-20 09:58:09 +01:00
Andy Wilkinson
b9fcd575ff Start building against Spring Integration 6.1.9 snapshots
See gh-40826
2024-05-20 09:56:59 +01:00
Andy Wilkinson
7ddbcac384 Start building against Spring AMQP 3.0.14 snapshots
See gh-40824
2024-05-20 09:56:48 +01:00
Scott Frederick
7f2b917851 Merge branch '3.1.x' into 3.2.x
Closes gh-40818
2024-05-17 11:41:23 -05:00
Scott Frederick
70aceb21eb Relocate test CNB builder and buildpack
The test CNB builder and buildpack used in integration tests have moved
from a projects.registry.vmware.com registry to ghcr.io/spring-io. This
commit modifies tests to use the new location.

Closes gh-40800
2024-05-17 10:59:41 -05:00
Andy Wilkinson
bc854b14a1 Upgrade to Spring WS 4.0.11
Closes gh-40664
2024-05-17 12:27:02 +01:00
Andy Wilkinson
7a523b5f6e Upgrade to Spring Data Bom 2023.1.6
Closes gh-40658
2024-05-17 12:27:01 +01:00
Andy Wilkinson
04ebddc4ba Upgrade to Pulsar Reactive 0.5.5
Closes gh-40810
2024-05-17 12:27:00 +01:00
Andy Wilkinson
a33fb25c4e Upgrade to Jetty Reactive HTTPClient 4.0.4
Closes gh-40809
2024-05-17 12:26:55 +01:00
Andy Wilkinson
7f5329fa4b Upgrade to Spring WS 4.0.11
Closes gh-40653
2024-05-17 12:24:21 +01:00
Andy Wilkinson
12a04c01d4 Upgrade to Spring Retry 2.0.6
Closes gh-40808
2024-05-17 12:24:20 +01:00
Andy Wilkinson
29a7bb2c7f Upgrade to Spring Data Bom 2023.0.12
Closes gh-40649
2024-05-17 12:24:16 +01:00
Andy Wilkinson
f5d68e7b9f Upgrade to Jetty Reactive HTTPClient 3.0.13
Closes gh-40807
2024-05-17 12:24:15 +01:00
Scott Frederick
d38c1e06b3 Ignore exceptions when deleting caches in bind cache tests
See gh-40760
2024-05-16 22:19:04 -05:00
Scott Frederick
bdc6508b62 Catch any exception when deleting image building workspace
See gh-40760
2024-05-16 21:19:51 -05:00
Scott Frederick
cd441130bd Warn when image building workspace directories cannot be deleted
When the `buildWorkspace` location in the
`spring-boot:build-image` Maven goal or `bootBuildImage` Gradle
task is configured to use a local bind source, the location
is passed to the CNB lifecycle without further processing by
Spring Boot. The lifecycle is in control of creating any files
in the specified location. Spring Boot tries to remove the
directories at the specified location after an image is
successfully created, but should not fail the image build
if the lifecycle has created files or directories with
permissions that keep them from being deleted successfully.

Fixes gh-40760
2024-05-16 17:37:44 -05:00
Andy Wilkinson
524424bc98 Merge branch '3.1.x' into 3.2.x
Closes gh-40795
2024-05-16 18:20:52 +01:00
Andy Wilkinson
a1d5369a9c Limit configuration cache testing to the latest version of Gradle
Closes gh-40794
2024-05-16 18:20:13 +01:00
Andy Wilkinson
493efd6798 Merge branch '3.1.x' into 3.2.x
Closes gh-40792
2024-05-16 18:06:32 +01:00
Andy Wilkinson
f35ecfbdca Reduce and update the versions of Maven that we test against
Closes gh-40791
2024-05-16 18:05:24 +01:00
Andy Wilkinson
feaccef3a4 Temporarily disable tests for image building with bind caches
See gh-40760
2024-05-16 17:22:02 +01:00
Andy Wilkinson
f24d4e4a06 Upgrade to Tomcat 10.1.24
Closes gh-40785
2024-05-16 15:05:48 +01:00
Andy Wilkinson
bb8cf46a29 Upgrade to Spring Retry 2.0.6
Closes gh-40784
2024-05-16 15:05:15 +01:00
Andy Wilkinson
50c6df99b5 Upgrade to SAAJ Impl 3.0.4
Closes gh-40783
2024-05-16 15:05:09 +01:00
Andy Wilkinson
5dcd9799af Upgrade to Reactor Bom 2023.0.6
Closes gh-40656
2024-05-16 15:05:04 +01:00
Andy Wilkinson
d2b067ea3d Upgrade to Jakarta XML WS 4.0.2
Closes gh-40782
2024-05-16 15:05:03 +01:00
Andy Wilkinson
de17b6c3a1 Upgrade to Jakarta XML SOAP 3.0.2
Closes gh-40781
2024-05-16 15:04:58 +01:00
Andy Wilkinson
edd45de17f Upgrade to Tomcat 10.1.24
Closes gh-40780
2024-05-16 14:18:50 +01:00