41 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
2
answers
152
views
Spring boot - @ServiceConnection doesn't work with KafkaTestContainer
I'm using Spring boot 3.5.6 and below is my container configuration
package com.transmonix.utils;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.BeforeEach;
import org....
1
vote
1
answer
215
views
DBRider(DBUnit) won't insert data into test container in spring boot
Can anyone using DBRider / Test Container in spring boot give advice ?
I've been using DBRider/Testcontainer without any issue, but at some point , it doesn't work out.
It seesm ...
0
votes
1
answer
164
views
Why can't I push an image to a local Docker registry started with Testcontainers?
I'm trying to create a local Docker registry using Testcontainers and push an image programatically to it. However, I'm getting a connection refused error when attempting to push the image. The first ...
0
votes
1
answer
234
views
Issue with Manually Setting ID in Spring Boot Integration Test with WebTestClient
Issue with Manually Setting ID in Spring Boot Integration Test with WebTestClient
I am writing an integration test for my Spring Boot controller using WebTestClient. However, when I manually set the ...
3
votes
1
answer
353
views
How to enable SQL logs in PostgreSQLContainer during tests
I have a Java Spring application that uses a PostgreSQL docker container for the tests. I would like to be able to see the SQL logs in that PostgreSQL container, but they do not show up. Can you ...
1
vote
0
answers
554
views
How do I replace DynamicPropertyRegistry as a bean method parameter?
I've got a spring-boot v3.2.5 app that runs successfully using testcontainers. I'm upgrading it to spring-boot v3.4.1.
I create the postgres testcontainer like this. It also sets the property spring....
1
vote
1
answer
219
views
SpringBootTest fails to start SQS container on CI server but not locally
I have the following ControllerIntegration test base class
@TestInstance(Lifecycle.PER_CLASS)
@AutoConfigureMockMvc
@EnableConfigurationProperties
@DirtiesContext(classMode = DirtiesContext.ClassMode....
0
votes
0
answers
663
views
Java TestContainers run with rootless Podman inside a non privileged Container
I want to run a a java TestContainer inside a non privileged container with a rootless podman. My docker commande to start it is like :
$: docker run --security-opt seccomp=unconfined --security-opt ...
0
votes
1
answer
622
views
TestContainers: Can not connect to Ryuk at localhost:50517 after upgrade to macos to Sequoia 15
As a demo project, I use the following:
https://github.com/testcontainers/testcontainers-java-spring-boot-quickstart,
Information about Java and Docker versions is below:
java -version
openjdk version ...
0
votes
0
answers
176
views
Postgress Test Container Fails to Start
Git Repo: https://github.com/SMHosseinM/demo
I'm using Postgress testContainer to spin up a postgress container for my integration test. However, when running the test, the application context fails ...
1
vote
0
answers
131
views
Unable to Instantiate Docker Client for Testcontainers in Gradle Build
I'm working on a Kotlin project that uses Spring Boot, JOOQ for database code generation, and Testcontainers for integration testing with PostgreSQL. My build is managed with Gradle, and I am ...
1
vote
0
answers
108
views
A way to bootstrap Docker environment when running Testcontainers tests?
I wonder if there is a way to bootstrap a Docker environment when running tests with @Testcontainers.
Right now when I run a test:
@Testcontainers
@SpringBootTest
internal class MyTest() {
@...
0
votes
1
answer
419
views
@KafkaListener with containerFactory is not triggered in @SpringBootTest
I am trying to write an integration test for my Kafka consumer using @SpringBootTest and Testcontainers for the underlying infrastructure. My setup looks like this one:
@Component
@...
1
vote
1
answer
2k
views
Issue with Testcontainers @ServiceConnection in AbstractIntegrationTest When Running Multiple Test Classes
I'm experiencing an issue with my integration tests using Testcontainers and the new @ServiceConnection annotation. I have an abstract class AbstractIntegrationTest which is extended by multiple test ...
2
votes
1
answer
124
views
Can we use mocking frameworks for load testing or should we create interfaces to inject dummy data into a class?
I have a service 'S' which has the logic to generate a report and download it. It is written in spring-boot and java. This is consumed by another system 'B' that has the data in its database 'C' that ...