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
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
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
Destination: Dockercon 2022How Docker Turned Itself Around #docker #crafted #techHow to Build with LLMs #Docker #llm #mlDocker Store: The New Destination for Enterprise SoftwareDocker Community All-Hands 7 - Day 1Product Update on Docker ComposeDockerize your own Game of Thrones’s APIDockTalk: Meet the Docker Captains - Brian ChristnerIntroducing Docker Extensions 🐳DockerCon 2015 highlightsManagement & Security at Scale with Docker BusinessReal-world Docker images for .NETDocker Build: Enabling Full Stack Continuous Previews with UffizziDockerCon 2019 Keynote: Day 2Production SecOps with Kubernetes in DockerBen Potter - Develop Your Code in the CloudDocker Build: Using Scoped Personal Access TokensOverview of the Secure Supply Chain LandscapeDocker Customer Story - InterSystemsDemystifying Container Connectivity with Kubernetes in DockerLockheed Martin at DockerCon