Consumer Driven Contract Tests for Gitlay Service and Gitlab Rails Application
This is a followup from gitlab-org/create-stage#12914 (closed)
Can we use Consumer Driven Contracts to ensure that changes in Gitaly do not break the way Gitlab consumes its API responses? Let's create a POC for a couple of endpoints and see if it serves the purpose.
We need to get a list of all endpoints/API calls made by the Rails app and set up CDC Tests for the same.
- Pact.io is one tool which helps in writing CDC tests - https://pact.io/
- It has both Golang libraries and Ruby gems to implement it.
Edited by Ramya Authappan