Загрузка страницы

Integration testing your legacy java microservice with docker-maven-plugin

Want to try Docker but don’t know where to start? Find a template for your tech stack → https://dockr.ly/3AxAnhn

The docker-maven-plugin enables a stack of Docker containers to be started and stopped by maven to support integration testing of a java application.

The docker-maven-plugin provides a syntax to describe a stack of docker containers within a pom.xml file. (Think of defining a docker-compose stack within an XML file). Containers can be started during the pre-integration phase of a maven build and then stopped during the post-integration phase. The plugin binds random high ports to the running containers to prevent collisions between containers launched by maven and those launched by the user.

This presentation will describe a legacy java microservice application that had no automated tests. By mocking service dependencies in Docker containers, a collection of integration tests were implemented with JUnit.

I'll demonstrate how the same set of integration tests can be launched using docker-compose interactively and using the docker-maven-plugin as a scripted solution.

This presentation will make use of the following resources.

• Resources:
- Using docker-maven-plugin → https://bit.ly/3R311pu
- Integration Test Example → https://bit.ly/3cD5gZW

• Speaker:
Terry Brady, Software Developer at California Digital Library.
- Join Terry on GitHub → https://github.com/terrywbrady
- Join Terry on LinkedIn → https://www.linkedin.com/in/terrywbrady/

--
Join the conversation!
LinkedIn → https://dockr.ly/LinkedIn
Twitter → https://dockr.ly/Twitter
Facebook → https://dockr.ly/Facebook
Instagram → https://dockr.ly/Instagram

Видео Integration testing your legacy java microservice with docker-maven-plugin канала Docker
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
2 сентября 2022 г. 4:03:35
00:14:22
Яндекс.Метрика