GH-737 - Work around double registry registration in AWS integration tests.

Looks like Boot 3.4 registers an addition DynamicPropertyRegistry bean.
This commit is contained in:
Oliver Drotbohm
2024-07-19 01:43:59 +02:00
parent 32a7b5dc74
commit c6c58277e8
2 changed files with 4 additions and 2 deletions

View File

@@ -28,6 +28,7 @@ import java.util.Map;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.context.ApplicationEventPublisher;
@@ -56,7 +57,7 @@ class SnsEventPublicationIntegrationTests {
static class TestConfiguration {
@Bean
LocalStackContainer localStackContainer(DynamicPropertyRegistry registry) {
LocalStackContainer localStackContainer(@Qualifier("dynamicPropertyRegistry") DynamicPropertyRegistry registry) {
var localstack = new LocalStackContainer(DockerImageName.parse("localstack/localstack:latest"));

View File

@@ -27,6 +27,7 @@ import java.util.Map;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.context.ApplicationEventPublisher;
@@ -55,7 +56,7 @@ class SqsEventPublicationIntegrationTests {
static class TestConfiguration {
@Bean
LocalStackContainer localStackContainer(DynamicPropertyRegistry registry) {
LocalStackContainer localStackContainer(@Qualifier("dynamicPropertyRegistry") DynamicPropertyRegistry registry) {
var localstack = new LocalStackContainer(DockerImageName.parse("localstack/localstack:latest"));