Session

Mocks as Code. Modeling services in configuration management flows

When managing service configurations at scale, it is often required to automate testing of these configurations. In software integration testing we can use Testcontainers - a popular framework for Docker and other container engines. Can we use the same for testing configurations in environments? Yes! Can we go further and mock services that cannot be replicated in Testcontainers or do not even exist yet? Also yes! There are WireMock and WireMock modules for Testcontainers at your service..

In this talk I will focus on using WireMock and Testcontainers when building and configuring your services. We will take Pulumi as a configuration management tool and Gradle as an implementation, but the same approaches are applicable to other config management tools.

References:

- Integration testing in Pulumi: https://www.pulumi.com/docs/using-pulumi/testing/integration/
- Testcontainers: https://www.testcontainers.org/
- WireMock: https://wiremock.org/
- K3s Module for Testcontainers: https://java.testcontainers.org/modules/k3s/
- Docker images: https://github.com/wiremock/wiremock-docker
- Helm chart: https://github.com/wiremock/helm-charts
- WireMock and testcontainers: https://wiremock.org/docs/solutions/testcontainers/
- Pulumi for Java: https://github.com/pulumi/pulumi-java

Oleg Nenashev

Community Builder, CNCF Ambassador, Jenkins core maintainer

Neuchâtel, Switzerland

View Speaker Profile

Please note that Sessionize is not responsible for the accuracy or validity of the data provided by speakers. If you suspect this profile to be fake or spam, please let us know.

Jump to top