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.
You can share contracts with a broker instead of using the pipeline.