Welcome to consumer contract testing, you will have all the necessary information in this readme to help guide you through the workshop. This repo contains a simple customer service that has no contract tests from its consumers.
Fork this repository
- You will need to have docker version 18.09.2, build 6247962 or greater installed
- You will need to be able to pull from an AWS ECR for this workshop.
- Create a simple boilerplate app (in any language that can be run in docker). You can get a quick example here
- Take a look at the swagger spec in this repo and create a stub against this.
- Create the files required by the standards to run consumer contrct tests against your stub.
- PR your features, fixtures, Dockerfile and test.sh into your consumer named directory on the service.
- Get your feature tests to pass
You can see a case study here with step by step instructions.
If you are having trouble pulling the ECR from AWS you can use this