diff --git a/src/test/java/com/testcontainers/catalog/common/BaseIntegrationTest.java b/src/test/java/com/testcontainers/catalog/common/BaseIntegrationTest.java index d394014..5081d1f 100644 --- a/src/test/java/com/testcontainers/catalog/common/BaseIntegrationTest.java +++ b/src/test/java/com/testcontainers/catalog/common/BaseIntegrationTest.java @@ -8,10 +8,10 @@ import org.springframework.boot.test.context.SpringBootTest; import org.springframework.boot.test.web.server.LocalServerPort; import org.springframework.context.annotation.Import; +import org.springframework.test.context.ActiveProfiles; -@SpringBootTest( - webEnvironment = RANDOM_PORT, - properties = {"spring.cloud.aws.region.static=us-east-1"}) +@SpringBootTest(webEnvironment = RANDOM_PORT) +@ActiveProfiles("test") @Import(ContainersConfig.class) public abstract class BaseIntegrationTest { diff --git a/src/test/resources/application-test.properties b/src/test/resources/application-test.properties new file mode 100644 index 0000000..05ef634 --- /dev/null +++ b/src/test/resources/application-test.properties @@ -0,0 +1,2 @@ +spring.kafka.consumer.auto-offset-reset=earliest +spring.cloud.aws.region.static=us-east-1 \ No newline at end of file