No description, website, or topics provided.
Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.md
Vagrantfile
pipeline.yml
update-consumer-contract.sh

README.md

Consumer Driven tests concouse pipeline

This is an example concourse pipeline with consumer driven tests.

A real application will have more pipelines/jobs but this one remains focused on the API contract.

Simplified example explained

In this simplified example adapted from a real live application the travel offers Spring Boot web application aggregates travel offers from the SEAL API a legacy Sinatra/Ruby app.

Travel offers is a the name of the API consumer that tests the interaction with the API provider SEAL API. If that contract test passes it will generate a JSON PACT file and the pipeline will upload it to a contract git repository. There is only one PACT file in this simplified example.

The pipeline will monitor the contract repository. When a new one is published it will run the API provider tests.

Alternatives

You can share contracts with a broker instead of using the pipeline.