testcontainers Questions

5

Solved

I have a Spring Boot application with integration tests that are using testContainers. Till recently, I used Docker Desktop and was able to easily run the test from within Intellij or from CLI. Rec...
Terylene asked 20/1, 2022 at 12:28

7

I am using test containers library to launch a container. It worked for a while but currently running into this java.lang.IllegalStateException: Could not connect to Ryuk at localhost:49167 at or...
Cotidal asked 5/5, 2021 at 12:39

2

Solved

I started playing with testcontainers and at the beginning of my journey I faced some issue (below). I did similar thing for mysql db and it worked fine. Do I miss some mongo specific config? Acco...

1

I use Testcontainers.MsSql 3.0.0 for integration tests in asp.net project. Integration tests run successfully in visual studio test runner. But when I run tests in docker desktop version 20.10.7 by...
Foxtrot asked 17/4, 2023 at 21:5

0

I have a .Net Core 6 Project which I am trying to setup integration tests for using TestContainers. I am using a Dockerfile generated by Visual Studio and this builds my image and I am able to run ...
Morin asked 30/3, 2023 at 14:25

1

Solved

I have an API REST .NET 7 and I want to build integrations tests using a sql server container database. I've tried to follow the example in the documentation (https://dotnet.testcontainers.org/exam...
Copyread asked 14/3, 2023 at 14:56

3

Solved

Having following configuration for my integration tests I ran into following exception: Driver org.testcontainers.jdbc.ContainerDatabaseDriver claims to not accept jdbcUrl, jdbc:postgresql://local...
Cinematograph asked 22/4, 2020 at 9:50

2

Solved

I have an integration tests project that executes as expected in VS. The integration tests use a MsSql testcontainer (from https://dotnet.testcontainers.org/). My goal is to run these tests in an A...
Karyolymph asked 11/1, 2023 at 12:9

5

Solved

Is it possible to use Testcontainers with Podman in Java tests? As of March 2022, the Testcontainers library doesn't detect an installed Podman as a valid Docker environment. Can Podman be a ...
Holo asked 20/3, 2022 at 19:12

5

Solved

Trying out testcontainers for integration testing. I am testing rest api endpoint. Here is the technology stack - quarkus, RESTEasy and mongodb-client I am able to see MongoDB container is starte...
Muldoon asked 26/4, 2020 at 20:0

2

Solved

In Short: Using AmazonS3Client to connect to a local instance of MinIO results in a UnknownHostException thrown because the url is resolved to http://{bucket_name}.localhost:port. Detailed descrip...
Gensler asked 11/5, 2022 at 17:14

2

Solved

I'm setting up integration tests in a sample spring boot kotlin project, using testcontainers:mongodb. I've set up a MongoDBContaine, and everything works as expected - the app connects to the mong...

2

Solved

I have multiple test classes running the same docker-compose with testcontainer. The suite fails with initializationError although each test passes when performed separately. Here is the relevant p...
Leopold asked 18/2, 2021 at 11:33

2

Solved

I have the following issue. In order to speed up the integration test pipeline I want to run testcontainers with Quarkus with TMPFS option set. This will force testcontainers to run the DB with a i...
Arminius asked 24/11, 2021 at 13:18

3

I am using a singleton test-container for running multiple integration tests like this : @SpringBootTest(webEnvironment = RANDOM_PORT) public abstract class BaseIT { static final PostgreSQLCon...
Corinecorinna asked 31/5, 2022 at 19:3

2

Solved

I am getting errors in my IDE about: Raw use of parameterized class 'GenericContainer' Inspection info: Reports any uses of parameterized classes where the type parameters are omitted. Such ra...
Moxley asked 16/7, 2019 at 14:10

1

I have a Node.js project with Testcontainers used for staring Redis and Prostgress for tests. I want to run these tests as a part of CI. For that purpose, I use an alpine image of Node.js with Dock...
Premonition asked 17/5, 2022 at 17:1

4

Solved

I want to run a container tests that running ES image via Docker. After some research I found https://www.testcontainers.org/ and they also have a built-it ES module. Because my development enviro...
Sipper asked 20/5, 2020 at 13:1

1

Solved

I execute some tests in GitHub Actions using Testcontainers. Testcontainers pulls the images which are used in my tests. Unfortunately the images are pulled again at every build. How can I cache th...
Triune asked 18/2, 2022 at 21:38

2

I'm trying to do the following; but using org.testcontainers.containers.MySQLR2DBCDatabaseContainer can anyone show me how this can be achieved, as MySQLR2DBCDatabaseContainer doesn't seem to hav...
Erotica asked 20/8, 2020 at 10:0

1

Solved

I have a small problem. I have started writing tests for my small project. The project uses SpringBoot, standard JpaRepository from Spring, as a testing framework I am using Spock and for testing t...
Episternum asked 16/12, 2021 at 21:12

4

My application uses Minio for S3-compatible object storage, and I'd like to use the Minio docker image in my integration tests via Testcontainers. For some very basic tests, I run a GenericContain...
Maidenhood asked 28/3, 2019 at 16:28

2

Solved

I'm using Testcontainers 1.15.3 with Spring Boot 2.4 and Junit5. When I run my test, testcontainers starts the first container and execute flyway scripts and then stop the first container. Immediat...
Bimestrial asked 21/6, 2021 at 13:35

1

Sometimes I need to install a port for Postgresql, which I run for tests in a container. But the Test container the developer command ofTestcontainers removed this feature. But somewhere there is a...
Asleyaslope asked 10/9, 2021 at 13:6

3

Solved

I am trying to use PostgreSQLContainer from TestContainers (https://github.com/testcontainers/testcontainers-java + https://www.testcontainers.org/) in order to unit test my JPA repositories. I dec...
Quasijudicial asked 23/11, 2019 at 12:5

© 2022 - 2024 — McMap. All rights reserved.