testcontainers Questions
2
When running dotnet test inside a gitlab cicd pipeline with the package testcontainer, containers are started but this error appears :
Error Message:
Docker.DotNet.DockerApiException : Docker API ...
Neela asked 7/9, 2023 at 13:8
5
I have a docker image called myImageName:latest, which I use in my application.
I want to write an integration test for my application, therefore I want to use the TestContainer package. When I run...
Winebibber asked 12/5, 2021 at 15:2
3
Solved
Using Spring for integration tests I am able to populate a test DB running scripts like so...
@Test
@Sql({"/db/schema.sql", "/db/accountConfig.sql", "/db/functions/fnSometh...
Intitule asked 31/7, 2021 at 0:8
2
My Java & Spring Boot application integration tests use testContainers and I'm using Podman on my Windows machine.
When trying to run the integration tests, I'm getting this permission error:
F...
Dieterich asked 3/1, 2023 at 7:59
3
Solved
I try to use Test Containers with Oracle-XE module and Spring Boot and so far, when I launch my test, I am confronted to exception :
Caused by: java.lang.IllegalArgumentException: JDBC URL matches...
Messeigneurs asked 1/8, 2019 at 11:52
3
Solved
My Spring Boot v3.2.0 app uses JDK 21. When the test suite finishes, closing the EntityManagerFactory beans that were created takes over 30 seconds, which is about 33% of the test suite's total exe...
Monohydric asked 7/12, 2023 at 16:15
4
I have two spring boot projects both with the same JDK and running on the same machine (apple m1). The first project is just a dummy project with just testcontainer dependency in it.
While the seco...
Colous asked 16/2, 2022 at 11:58
2
Solved
so trying to understand how I can make testing ktor app with testcontainers
this is my code
package com.app
import com.app.base.db.DbFactory
import com.app.features.auth.RegisterDTO
import com.app...
Drugget asked 6/6, 2022 at 16:8
4
Solved
I'm trying to define a @TestConfiguration class that is executed once before all integration tests to run a MongoDB TestContainer in Kotlin in a Spring Boot project.
Here is the code:
import org.sp...
Triplet asked 18/10, 2022 at 12:12
4
I have a spring boot app. I'm testing it with testcontainers to ensure that the DB (postgres) and the Repository implementation do what they are supposed to do.
I initialise the container with the...
Actin asked 17/12, 2019 at 10:18
19
I am very new to using test containers. My test is failing with below exception.
Running com.mastercard.example.testcontainers.testcontainersexampple.DemoControllerTest
2020-04-08 14:27:08.441 INF...
Lecompte asked 8/4, 2020 at 19:35
5
Solved
I'm trying to add automated testing using the TestContainers library to my Spring Boot project
Here is my test class to test my jpa repository:
package com.ubm.mfi.repo;
import com.ubm.mfi.domain....
Amaleta asked 6/5, 2020 at 0:24
1
I got "ContainerLaunchException: Timed out waiting for log output matching" when starting testcontainer for elasticserach. How should I fix this issue?
container = new ElasticsearchContai...
Killing asked 26/4, 2022 at 18:3
2
I have java project which using testcontainers for integration test. I want to implement gitlab ci for that stage but I've got that error
java.lang.IllegalStateException: Could not find a valid Doc...
Frequentative asked 5/7, 2022 at 11:33
2
Solved
When using Test Containers the normal behavior is that it will shutdown the container when the test is finished due to pass or failure.
Is there a way to configure test containers so that if a test...
Cenesthesia asked 4/7, 2020 at 5:46
1
I am trying to programmatically create and spin up a Testcontainers GenericContainer from a docker image hosted in a private AWS ECR repository. This will be used for automated integration tests, w...
Shikoku asked 19/2, 2022 at 17:18
3
Solved
I'm using testcontainer version 1.15.2. Tests are run in intellij on windows 10.
I have a wiremock container. By default it listens on the port 8080. I would like to map this port to let's say 8081...
Alimony asked 23/11, 2021 at 17:48
1
I'm trying to use oracle testcontainer for java integration test. It's booting up, I can issue select 1 from dual;. But. I need to create custom table space before firing up liquibase. oracle-xe te...
Nydia asked 20/10, 2023 at 8:59
7
I have a side project where I'm using Spring Boot, Liquibase and Postgres.
I have the following sequence of tests:
test1();
test2();
test3();
test4();
In those four tests, I'm creating the same en...
Gens asked 13/7, 2020 at 6:30
2
Solved
I use Localstack with Testcontainers((testcontainers:localstack:1.15.2 )) for integration tests and set up the secret in the test setup like this:
Code sample
import com.amazonaws.services.secrets...
Buckbuckaroo asked 26/3, 2021 at 6:15
2
I have a problem to run docker-compose up -d to run Spring Boot on Docker. I have a MySQL database connection issue when the app tries to run integration test with test container.
As I cannot conne...
Crosswind asked 17/9, 2023 at 15:23
7
Solved
I'm using TestContainers with Spring Boot to run unit tests for repositories like this:
@Testcontainers
@ExtendWith(SpringExtension.class)
@ActiveProfiles("itest")
@SpringBootTest(classes = RouteT...
Kaon asked 17/6, 2020 at 9:17
3
I'm using testcontainers.org using docker.elastic.co/elasticsearch/elasticsearch-oss:7.3.2 and I want to use it to test the plugin I'm updating, but I can't find a way to install it inside test env...
Radices asked 27/9, 2019 at 13:10
0
I have following docker-compose file for local development:
version: '3.4'
networks:
mynetwork:
services:
samba:
image: instantlinux/samba-dc:latest
container_name: samba-dc
cap_add:
- CAP_...
Told asked 10/8, 2023 at 14:8
3
Solved
I'm trying to run a JUnit test using Testcontainers on my MacOs running Rancher Desktop. The docker CLI works fine as I can run any container using docker run.
The source code of the JUnit test loo...
Jiminez asked 8/3, 2023 at 7:27
1 Next >
© 2022 - 2024 — McMap. All rights reserved.