YOU ARE DOWNLOADING DOCUMENT

Please tick the box to continue:

Transcript
Page 1: Integration Testing with Docker Containers  with DockerCompose

ENGINEERED BY MONOWAI

MONOWAI.COM

GITHUB.COM/MONOWAI

@MONOWAI

Page 2: Integration Testing with Docker Containers  with DockerCompose

http://localhost/api/me• I build things as Monowai

• Consult, design and build

• Software engineer

• Dev manager, architect

• Microservices, NoSQL, Spring, Java, AWS etc.

• Docker

• FD - open source data processing pipeline

Page 3: Integration Testing with Docker Containers  with DockerCompose

The Stack

Page 4: Integration Testing with Docker Containers  with DockerCompose
Page 5: Integration Testing with Docker Containers  with DockerCompose

Build and Test Things

Page 6: Integration Testing with Docker Containers  with DockerCompose

Way we test• Tests are independent and repeatable

• Tests create their own data

• Write code to be testable

• Unit, functional, MVC and integration

• Configurations can vary and be tested accordingly

Page 7: Integration Testing with Docker Containers  with DockerCompose

Docker• Containerisation of services

• Each service has a Docker File

• expose ports

• default ENV vars

• communicates config settings to ops

Page 8: Integration Testing with Docker Containers  with DockerCompose

Spring• @SpringBootApplication

• @MessageGateway

• @Configuration

• @Profile

Page 9: Integration Testing with Docker Containers  with DockerCompose
Page 10: Integration Testing with Docker Containers  with DockerCompose

Package the Things

Page 11: Integration Testing with Docker Containers  with DockerCompose
Page 12: Integration Testing with Docker Containers  with DockerCompose

Compose the Things

Page 13: Integration Testing with Docker Containers  with DockerCompose
Page 14: Integration Testing with Docker Containers  with DockerCompose

Verify the Things

Page 15: Integration Testing with Docker Containers  with DockerCompose
Page 16: Integration Testing with Docker Containers  with DockerCompose
Page 17: Integration Testing with Docker Containers  with DockerCompose
Page 18: Integration Testing with Docker Containers  with DockerCompose

COLLECT | CONNECT | COMPARE

Mike Holdsworth | @monowai

flockdata.com


Related Documents