Simple study about contract tests between consumers and providers using Pact and Pact Broker.
Scenario:
-
There is an
api-in-gowhich exposes two endpoints:/users/:id/items/:sku
-
There is a
frontend-clientthat fetches fromapi-in-gousing/users/:idendpoint -
There is a
ruby-servicethat fetches fromapi-in-gousing/item/:skuendpoint -
There is a
pact-brokerthat will receive the contracts published byfrontend-clientandruby-service, will provide toapi-in-goso the API can test if the interactions are still valid or not and will show the current integration status


