1,186 questions
0
votes
0
answers
10
views
MongoTimeoutException in Testcontainers Integration Test : Open Liberty app attempts to connect to Kubernetes FQDNs instead of local alias
Title - MongoTimeoutException in Testcontainers Integration Test : Open Liberty app attempts to connect to Kubernetes FQDNs instead of local alias
I am writing integration tests for an Open Liberty-...
0
votes
0
answers
28
views
TestContainers GenericContainer does not start up with podman in `host` networking mode
I am running an IntegrationTest using TestContainers version 1.21.3 on a rootless podman setup.
On Startup a GenericContainer is running an assertion that asserts that the ports exposed post container ...
34
votes
5
answers
14k
views
Sudden Docker error about "client API version"
I've been successfully using TestContainers with Docker for quite a while now. All of a sudden today, I started getting this error:
UnixSocketClientProviderStrategy: failed with exception ...
0
votes
2
answers
88
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....
0
votes
0
answers
63
views
Testcontainers.CosmosDb takes a long time to be ready
I'm working on an Integration test, where I want to use Testcontainers.CosmosDb, however it takes quite a long time (about 2min) for the CosmosDb to be ready.
var network = new NetworkBuilder()
...
0
votes
1
answer
50
views
Why Does Failsafe Report that Zero Tests Were Run when Using Spring Boot Versions above 3.4.4
We have a series of Spring Boot Webflux microservices that have complete suites of both unit and integration tests employing Cucumber and TestContainers. As long as we use Spring Boot Starter Parent ...
0
votes
0
answers
32
views
Spanner emulator slow connection at start
When using Spanner Emulator with Testcontainers, it starts up pretty quickly (1-2 seconds) but then the connection from Java takes a very long time (even 2 minutes!). I start it up with:
new ...
0
votes
1
answer
69
views
Why can I not ping the Docker host from IntelliJ Terminal
I am working in Intellij Idea and I have issues working with Testcontainers. It heavily depends on Docker containers. To run them I use Colima. It's set up with a network address.
# Results from `...
0
votes
0
answers
94
views
Unable to Connect to Azurite Container from Custom Engine Container in Integration Tests
I'm currently working on integration tests for my project, which consists of two main components: an application and an engine. Both components are deployed into Azure Container Apps. The engine ...
1
vote
1
answer
93
views
.NET - TestContainers many instance PostgreSql conflict
I'm writing integration tests in my .NET Web API. I'm using XUnit for this. I am using factory and collection. And everything works as expected. I run factory there I have used PostgreSql database ...
5
votes
1
answer
193
views
ServiceBus testcontainer not starting
Trying to create an integrationtest with a 'TestContainer.ServiceBus', however I'm not able to start the container, it just timesout, without not information about the reason.
[Fact]
public async Task ...
0
votes
0
answers
89
views
Testing Kafka flow with Test Containers
I am trying to use TestContainers to set up integration testing for kafka. I am using generic apache kafka client in my code for setting up kafka producer and consumer.Now my scenario is to test a ...
0
votes
1
answer
99
views
Testcontainers and microservices: how to start a second container that the first is trying to call
I'm writing integration tests using Testcontainers in a Spring Boot application. I am testing the user service, which calls the authentication service in order to encode the password when a user is ...
0
votes
1
answer
581
views
How to configure schema registry with testcontainers?
I'm new to testcontainers and I want to configure confluent kafka with schema registry for testcontainers. And here's my full code of configuration.
@TestConfiguration(proxyBeanMethods = false)
class ...
0
votes
1
answer
292
views
Testcontainer not running inside docker
I have just migrated my code to Testcontainer (for testing). If I run the test locally with Docker enabled, the test runs fine.
Now, the issue comes when I try to run the same test in Docker [Docker-...
0
votes
1
answer
151
views
Using TestContainers how do I create a container for each test file?
We are using Testcontainers.PostgreSql for functional testing in an API we are making and currently a new container is being made for each individual test. This is causing problem when running all the ...
2
votes
2
answers
159
views
Testcontainer for Kubernetes and Argo Workflows
I want to do some integration testing + setup local dev environment for a Java/Spring Boot application that interacts with Kubernetes via Argo Workflows. I don't see a Kubernetes test container (...
-1
votes
1
answer
114
views
How to Handle Docker group security issue using Testcontainers?
I want to spin up a Testcontainer for a microservice in order to perform an IT on another microservice I'm currently developing.
Now, when I'm launching the test, it fails because of a "...
0
votes
1
answer
64
views
.NET elasticsearch testcontainer tests fail in run mode, but succeed in debug mode
I use NUnit and Testcontainers to test my custom method for fetching data from Elasticsearch. The code to interact with elasric is this
using ArticleStorage.Api.Models;
using ArticleStorage.Api.Models....
0
votes
0
answers
59
views
Where is the second Kafka listener coming from?
I'm trying to setup a project using Spring Boot, Spring Kafka & TestContainers. My TestContainer setup looks like below:
private static final Network NETWORK = Network.newNetwork();
@Bean
@...
0
votes
0
answers
42
views
How to create a Neo4j TestContainer with APOC and GraphQL? When APOC is enabled, GraphQL fails to retrieve data
I'm trying to set up a Neo4j TestContainer with APOC and GraphQL, but I am encountering issues when enabling APOC.
Here's my setup:
Without APOC: The data is correctly inserted into Neo4j, and ...
1
vote
1
answer
275
views
Quarkus Always Tries to Use Docker for PostgreSQL Despite Disabling DevServices
Problem Statement
I am trying to configure my Quarkus application to connect to my local PostgreSQL database, but it always tries to start PostgreSQL using Docker via Dev Services. Even after ...
2
votes
1
answer
174
views
How do I isolate MassTransit test harness per test when using a shared SQL container and scoped transactions in xUnit?
I have an integration testing setup in .NET using xUnit v3, Testcontainers (for SQL Server), and MassTransit. My goal is to have:
A single SQL container spun up once at the assembly level (using [...
0
votes
0
answers
73
views
TestContainers Mongo fails to start, but Docker Compose with same config is OK
I have a Docker compose.yml for MongoDB, and this works.
mongodb:
image: mongo:8.0.4-noble
container_name: mongodb
hostname: mongodb
restart: unless-stopped
volumes:
- ...
0
votes
2
answers
176
views
How to reset DB after each test class in Testcontainers?
public class AbstractContainerBaseTest {
@ServiceConnection
static final MySQLContainer<?> MY_SQL_CONTAINER = new MySQLContainer<>("mysql:8.0.32")
static {
...