Category : integration-testing

I wrote a ChatOps bot for the collaboration tool Mattermost using this framework. Now I’m trying to write and run integration tests and I used their examples. Their docker-compose.yml file will only work on a Linux machine. If you want to reproduce it on a Mac machine, edit the docker-compose.yml to: version: "3.7" services: app: ..

Read more

In my @QuarkusIntegrationTest I want to use a MockServer testcontainer that simulates the responses to requests from my application. To start the MockServer I use testcontainers. The application uses http://localhost:port, where port is mockserverContainer.getMappedPort (). It all works. When I test the application with -Dquarkus.container-image.build=true, I get the following problem: Quarkus creates a Docker network ..

Read more

I have tests which on inside docker container with https://github.com/pytest-docker-compose/pytest-docker-compose, but it does take too long for the container to start up/shutdown. Then, I would like to let docker-compose run tests only CI machine or when need. For this, I used this way of defining tests on simple_test_runner.py: import os THIS_FOLDER = os.path.dirname(os.path.realpath(__file__)) RUN_TESTS_LOCALLY = ..

Read more

According to Docker official website , Docker doesn’t support SQL image for M1 processors ; however , it supports installing it by passing " –platform linux/x86_64 mysql" . Actually , SQL docker is pulled successfully using this command docker pull –platform linux/x86_64 mysql the output : Using default tag: latest latest: Pulling from library/mysql a330b6cecb98: ..

Read more

I am creating a go application that is supposed to run as a k8s job. I want to run several integration tests with docker-compose. When addressing one scenario, it seams to be easy, as in: services: sut: build: context: . args: SOME_ARG: ${SOME_VAR} and then docker-compose -f docker-compose.test.yaml up –build –remove-orphans –renew-anon-volumes –force-recreate –exit-code-from sut ..

Read more

I downloaded Docker and then run Integration Tests in my Intelij Idea written on Java. And each integration test had the same problem : Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘flywayInitializer’ defined in class path resource [org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration$FlywayConfiguration.class]: Invocation of init method failed; nested exception is org.flywaydb.core.api.FlywayException: Validate failed: Detected applied migration not resolved ..

Read more